Skip to content

Commit

Permalink
Merge pull request #3 from OJFord/fix-cross-db-err
Browse files Browse the repository at this point in the history
Fix 'cross-database references' mis-syntax error
  • Loading branch information
rvkulikov authored Jul 5, 2021
2 parents faf4b7e + dbeda39 commit 982df8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,11 @@ begin
v_curr.obj_name,
nextval(v_sequence::regclass),
format(
'GRANT %s ON %I.%I.%I TO %I %s',
'GRANT %s (%I) ON %I.%I TO %I %s',
privilege_type,
column_name,
table_schema,
table_name,
column_name,
grantee,
case
when is_grantable = 'YES'
Expand Down Expand Up @@ -426,11 +426,11 @@ begin
v_curr.obj_name,
nextval(v_sequence::regclass),
format(
'GRANT %s ON %I.%I.%I to %I %s',
'GRANT %s (%I) ON %I.%I to %I %s',
privilege_type,
column_name,
table_schema,
table_name,
column_name,
grantee,
case
when is_grantable = 'YES'
Expand Down

0 comments on commit 982df8b

Please sign in to comment.