You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lukaseder
changed the title
PostgreSQL's TABLE command cannot be translated
Add support for standard SQL <explicit table> as standalone query
Feb 8, 2021
The <explicit table> is a possible <query primary> (and thus <query expression body>) according to the SQL standard, not just according to PostgreSQL. It's not a command on its own, it's just one of many things you can put in a query. For example, you can do this:
createtabletasselect1 a;
table t union all table t;
It would definitely make sense to support it, both
in jOOQ (will be implemented later)
in the parser.
I could have sworn we already had an issue for this, but I cannot seem to find it...
Parser support will be added to jOOQ 3.15. API support is more tricky, and probably not very urgent (similar to VALUES constructor support, which is implemented in the parser, but not in the API).
SQL translator incorrectly translates this query:
TABLE is a PostgreSQL-specific command.
Parser output:
The text was updated successfully, but these errors were encountered: