Is there a valid use case for being able to specify a relation name that points to a "wrong" table?
Example:
As far as I can tell, unlike specifying a relation name which doesn't exist, or not specifying a relation name in case of ambiguity, which error in drizzle, this dies with a database driver error at runtime when the generated query references the wrong table in case of a type mismatch, or potentially continues to operate with undefined behavior resulting from selecting a row from the wrong table.
With the above configuration, with the types deliberately incompatible, I receive
PostgresError: operator does not exist: text = uuid
when attempting to select using the wrong name.1 Reply
(bump)