[#8072] Code generator on PostgreSQL 9.3.9
This commit is contained in:
parent
e53adcf586
commit
4deccd971e
@ -384,7 +384,7 @@ public class PostgresDatabase extends AbstractDatabase {
|
||||
.where(TABLES.TABLE_SCHEMA.in(getInputSchemata()))
|
||||
|
||||
// To stay on the safe side, if the INFORMATION_SCHEMA ever
|
||||
// includs materialised views, let's exclude them from here
|
||||
// includes materialised views, let's exclude them from here
|
||||
.and(canUseTupleInPredicates()
|
||||
? row(TABLES.TABLE_SCHEMA, TABLES.TABLE_NAME).notIn(
|
||||
select(
|
||||
@ -908,8 +908,10 @@ public class PostgresDatabase extends AbstractDatabase {
|
||||
|
||||
// [#7270] The tuple in predicate is not implemented in all PostgreSQL
|
||||
// style databases, e.g. CockroachDB
|
||||
// [#8072] Some database versions might support in, but not not in
|
||||
try {
|
||||
create(true).select(field("(1, 2) in (select 1, 2)")).fetch();
|
||||
create(true).select(field("(1, 2) not in (select 1, 2)")).fetch();
|
||||
canUseTupleInPredicates = true;
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user