File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1266,12 +1266,13 @@ check_for_not_null_inheritance(ClusterInfo *cluster)
1266
1266
PGconn * conn = connectToServer (& old_cluster , active_db -> db_name );
1267
1267
1268
1268
res = executeQueryOrDie (conn ,
1269
- "SELECT cc.relnamespace::pg_catalog.regnamespace AS nspname, "
1270
- " cc.relname, ac.attname "
1269
+ "SELECT nspname, cc.relname, ac.attname "
1271
1270
"FROM pg_catalog.pg_inherits i, pg_catalog.pg_attribute ac, "
1272
- " pg_catalog.pg_attribute ap, pg_catalog.pg_class cc "
1271
+ " pg_catalog.pg_attribute ap, pg_catalog.pg_class cc, "
1272
+ " pg_catalog.pg_namespace nc "
1273
1273
"WHERE cc.oid = ac.attrelid AND i.inhrelid = ac.attrelid "
1274
1274
" AND i.inhparent = ap.attrelid AND ac.attname = ap.attname "
1275
+ " AND cc.relnamespace = nc.oid "
1275
1276
" AND ap.attnum > 0 and ap.attnotnull AND NOT ac.attnotnull" );
1276
1277
1277
1278
ntup = PQntuples (res );
You can’t perform that action at this time.
0 commit comments