None of the DAO generated queries utilize SQL quotation. This becomes problematic in various situations, but, is most visible when table names utilize built in symbols.
Example -
The statement select user.legalName, user.internalEmail, user.id from user LIMIT 1 OFFSET 0
results in org.jdbi.v3.core.statement.UnableToExecuteStatementException: org.postgresql.util.PSQLException: ERROR: syntax error at or near "."
This would be fixed by simply adding quotations.
SELECT "user"."legal_name", "user"."internal_email", "user"."id" FROM "user" LIMIT 1 OFFSET 0
None of the DAO generated queries utilize SQL quotation. This becomes problematic in various situations, but, is most visible when table names utilize built in symbols.
Example -
The statement
select user.legalName, user.internalEmail, user.id from user LIMIT 1 OFFSET 0results in
org.jdbi.v3.core.statement.UnableToExecuteStatementException: org.postgresql.util.PSQLException: ERROR: syntax error at or near "."This would be fixed by simply adding quotations.
SELECT "user"."legal_name", "user"."internal_email", "user"."id" FROM "user" LIMIT 1 OFFSET 0