We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b870ff3 commit 5697865Copy full SHA for 5697865
packages/server/src/api/routes/tests/datasource.spec.ts
@@ -647,6 +647,9 @@ if (datasources.length) {
647
// pg_dump 17 puts this config parameter into the dump but no DB < 17
648
// can load it. We're using postgres 16 in tests at the time of writing.
649
schema = schema.replace("SET transaction_timeout = 0;", "")
650
+ // Remove \restrict and \unrestrict commands that are not valid in older PostgreSQL versions
651
+ schema = schema.replace(/\\restrict\s+[^\n]+\n?/g, "")
652
+ schema = schema.replace(/\\unrestrict\s+[^\n]+\n?/g, "")
653
}
654
if (isPostgres && isLegacy) {
655
// in older versions of Postgres, this is not a valid option - Postgres 9.5 does not support this.
0 commit comments