Skip to content

Commit

Permalink
Merge pull request #3667 from mathesar-foundation/roles_list_oid_bigint
Browse files Browse the repository at this point in the history
Cast OID values to bigint in msar.get_roles
  • Loading branch information
mathemancer authored Jul 10, 2024
2 parents 3cb5280 + 4d580cd commit dea9210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/sql/00_msar.sql
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ WITH rolemembers as (
pgr.oid AS oid,
jsonb_agg(
jsonb_build_object(
'oid', pgm.member,
'oid', pgm.member::bigint,
'admin', pgm.admin_option
)
) AS members
Expand All @@ -926,7 +926,7 @@ WITH rolemembers as (
SELECT jsonb_agg(role_data)
FROM (
SELECT
r.oid AS oid,
r.oid::bigint AS oid,
r.rolname AS name,
r.rolsuper AS super,
r.rolinherit AS inherits,
Expand Down

0 comments on commit dea9210

Please sign in to comment.