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
" pg_catalog.pg_get_constraintdef(oid, true) as condef\n"
1239
+
"FROM pg_catalog.pg_constraint c\n"
1240
+
"WHERE c.confrelid = '%s' AND c.contype = 'f' ORDER BY 1",
1241
+
oid);
1242
+
result6=PSQLexec(buf.data, false);
1243
+
if (!result6)
1244
+
{
1245
+
PQclear(result1);
1246
+
PQclear(result2);
1247
+
PQclear(result3);
1248
+
PQclear(result4);
1249
+
PQclear(result5);
1250
+
goto error_return;
1251
+
}
1252
+
else
1253
+
referencedby_count=PQntuples(result6);
1254
+
}
1255
+
1231
1256
/* count inherited tables */
1232
-
printfPQExpBuffer(&buf, "SELECT c.oid::regclass FROM pg_catalog.pg_class c, pg_catalog.pg_inherits i WHERE c.oid=i.inhparent AND i.inhrelid = '%s' ORDER BY inhseqno ASC", oid);
1257
+
printfPQExpBuffer(&buf, "SELECT c.oid::pg_catalog.regclass FROM pg_catalog.pg_class c, pg_catalog.pg_inherits i WHERE c.oid=i.inhparent AND i.inhrelid = '%s' ORDER BY inhseqno", oid);
0 commit comments