[jOOQ/jOOQ#9511] Avoid quoted identifiers in jOOQ-meta queries
This commit is contained in:
parent
9fc2e2cd61
commit
38febbc695
@ -78,6 +78,7 @@ import org.jooq.SQLDialect;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.conf.RenderQuotedNames;
|
||||
import org.jooq.conf.Settings;
|
||||
import org.jooq.conf.SettingsTools;
|
||||
import org.jooq.exception.DataAccessException;
|
||||
@ -274,6 +275,13 @@ public abstract class AbstractDatabase implements Database {
|
||||
throw e;
|
||||
}
|
||||
|
||||
// [#9511] In some cases, it's better not to quote identifiers from
|
||||
// jOOQ-meta queries for better dialect interoperability. No
|
||||
// cases where quoting would have been necessary were found in
|
||||
// integration tests, or when looking for identifiers matching
|
||||
// [A-Za-z_$#][A-Za-z0-9_$#]+ in generated jOOQ-meta code.
|
||||
configuration.settings().setRenderQuotedNames(RenderQuotedNames.NEVER);
|
||||
|
||||
if (muteExceptions) {
|
||||
return DSL.using(configuration);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user