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
There are quite a few jOOQ internals that use a Named::getQualifiedName and render that directly, without giving schema mapping any consideration. One example is DefaultRecordBinding.pgRenderRecordCast, which might not apply schema mapping.
We should have an ExecuteListener in our integration tests that looks for references of the default schema in ordinary generated SQL (e.g. public), and then tries applying a schema mapping public -> xyz, to check if all public references have been replaced correctly by xyz). With that ExecuteListener added to every integration test, we'll have much higher test coverage of the schema mapping feature.
The above test has exposed the following missing schema mappings (at least):
UDT casts in PostgreSQL (e.g. CAST(? AS PUBLIC.MY_TYPE), though enum types are cast correctly)
CREATE FUNCTION and DROP FUNCTION (e.g. PostgreSQL)
There are quite a few jOOQ internals that use a
Named::getQualifiedName
and render that directly, without giving schema mapping any consideration. One example isDefaultRecordBinding.pgRenderRecordCast
, which might not apply schema mapping.We should have an
ExecuteListener
in our integration tests that looks for references of the default schema in ordinary generated SQL (e.g.public
), and then tries applying a schema mappingpublic
->xyz
, to check if allpublic
references have been replaced correctly byxyz
). With thatExecuteListener
added to every integration test, we'll have much higher test coverage of the schema mapping feature.The above test has exposed the following missing schema mappings (at least):
CAST(? AS PUBLIC.MY_TYPE)
, though enum types are cast correctly)CREATE FUNCTION
andDROP FUNCTION
(e.g. PostgreSQL)CREATE PROCEDURE
andDROP PROCEDURE
CREATE TRIGGER
andDROP TRIGGER
(this has been recognised as a TODO of Add support for { CREATE | DROP } TRIGGER commands #6956, in a code comment)CREATE INDEX
(e.g. H2)The text was updated successfully, but these errors were encountered: