Skip to content

Commit 58ab3d4

Browse files
committed
fix: convert oids to int8
1 parent e43380d commit 58ab3d4

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/lib/sql/functions.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
select
2-
p.oid as id,
2+
p.oid :: int8 as id,
33
n.nspname as schema,
44
p.proname as name,
55
l.lanname as language,
@@ -13,4 +13,4 @@ from
1313
pg_proc p
1414
left join pg_namespace n on p.pronamespace = n.oid
1515
left join pg_language l on p.prolang = l.oid
16-
left join pg_type t on t.oid = p.prorettype
16+
left join pg_type t on t.oid = p.prorettype

src/lib/sql/policies.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
select
2-
pol.oid as id,
2+
pol.oid :: int8 as id,
33
n.nspname AS schema,
44
c.relname AS table,
55
c.oid :: int8 AS table_id,

src/lib/sql/publications.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SELECT
2-
p.oid AS id,
2+
p.oid :: int8 AS id,
33
p.pubname AS name,
44
p.pubowner :: regrole AS owner,
55
p.pubinsert AS publish_insert,

src/lib/sql/roles.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
-- TODO: Consider using pg_authid vs. pg_roles for unencrypted password field
22
SELECT
3+
oid :: int8 AS id,
34
rolname AS name,
45
rolsuper AS is_superuser,
56
rolcreatedb AS can_create_db,
@@ -14,8 +15,7 @@ SELECT
1415
END AS connection_limit,
1516
rolpassword AS password,
1617
rolvaliduntil AS valid_until,
17-
rolconfig AS config,
18-
oid AS id
18+
rolconfig AS config
1919
FROM
2020
pg_catalog.pg_roles
2121
INNER JOIN LATERAL (

src/lib/sql/types.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SELECT
2-
t.oid AS id,
2+
t.oid :: int8 AS id,
33
t.typname AS name,
44
n.nspname AS schema,
55
pg_catalog.Format_type (t.oid, NULL) AS format,

0 commit comments

Comments
 (0)