diff --git a/server/assets/postgres/plugin-functions.txt b/server/assets/postgres/plugin-functions.txt index d96545a91..918aa1db7 100644 --- a/server/assets/postgres/plugin-functions.txt +++ b/server/assets/postgres/plugin-functions.txt @@ -180,6 +180,7 @@ time timestamp timestamptz timetz +uuid varbit varchar diff --git a/server/tests/unit/db/engine/postgres/plugin-sql-guard.test.ts b/server/tests/unit/db/engine/postgres/plugin-sql-guard.test.ts index 5b5cd7bbb..f68a65513 100644 --- a/server/tests/unit/db/engine/postgres/plugin-sql-guard.test.ts +++ b/server/tests/unit/db/engine/postgres/plugin-sql-guard.test.ts @@ -104,6 +104,8 @@ describe('plugin SQL guard', () => { 'CREATE TYPE span AS RANGE (subtype = float8)', 'CREATE TABLE index (x int)', 'CREATE INDEX ON notes (body)', + // PostgreSQL 19 added a uuid() conversion to the catalog; a uuid column and the cast still pass. + 'SELECT t.uuid FROM items t WHERE t.uuid = uuid($1)', ])('lets through %s', (sql) => { expect(() => check(sql)).not.toThrow(); });