Skip to content

Commit

Permalink
fix: correct sql syntax for hasura init script
Browse files Browse the repository at this point in the history
  • Loading branch information
neilsong committed Jan 12, 2025
1 parent 6b73e8e commit f852ef3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions db/hasura-user.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ BEGIN
'hasura') AS cmd
FROM pg_proc p
JOIN pg_namespace n ON p.pronamespace = n.oid
WHERE n.nspname = 'hdb_catalog';
LOOP
WHERE n.nspname = 'hdb_catalog' LOOP
EXECUTE obj.cmd;
END LOOP;
END $$;
Expand Down

0 comments on commit f852ef3

Please sign in to comment.