[jOOQ/jOOQ#9917] Codegeneration fails with case sensitive data types in
postgres
This commit is contained in:
parent
c4b65bc28b
commit
f0a839df8d
@ -70,6 +70,7 @@ import static org.jooq.impl.DSL.row;
|
||||
import static org.jooq.impl.DSL.rowNumber;
|
||||
import static org.jooq.impl.DSL.select;
|
||||
import static org.jooq.impl.DSL.selectFrom;
|
||||
import static org.jooq.impl.DSL.sql;
|
||||
import static org.jooq.impl.DSL.table;
|
||||
import static org.jooq.impl.DSL.val;
|
||||
import static org.jooq.impl.DSL.values;
|
||||
@ -1177,7 +1178,9 @@ public class PostgresDatabase extends AbstractDatabase implements ResultQueryDat
|
||||
Field<?> orderBy =
|
||||
exists(PG_ENUM.ENUMSORTORDER)
|
||||
? PG_ENUM.ENUMSORTORDER
|
||||
: field("{0}::{1}", PG_ENUM.ENUMLABEL, name(nspname, typname));
|
||||
|
||||
// [#9511] [#9917] Workaround for regression introduced by avoiding quoting names everywhere
|
||||
: field("{0}::{1}", PG_ENUM.ENUMLABEL, sql(name(nspname, typname) + ""));
|
||||
|
||||
if (canCastToEnumType == null) {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user