Skip to content

Commit c60b4b0

Browse files
committed
Add tag to the dollar-quoting definition of the function
This change makes the code more consistent (all the other functions also have this tag). And will also allow the script to be executed inside of a anonymous blocks, which are usually written as ```sql DO $$ ... $$ ```
1 parent d256c1c commit c60b4b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

audit.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ $body$ LANGUAGE SQL;
232232
-- And provide a convenience call wrapper for the simplest case
233233
-- of row-level logging with no excluded cols and query logging enabled.
234234
--
235-
CREATE OR REPLACE FUNCTION audit.audit_table(target_table regclass) RETURNS void AS $$
235+
CREATE OR REPLACE FUNCTION audit.audit_table(target_table regclass) RETURNS void AS $body$
236236
SELECT audit.audit_table($1, BOOLEAN 't', BOOLEAN 't');
237-
$$ LANGUAGE 'sql';
237+
$body$ LANGUAGE 'sql';
238238

239239
COMMENT ON FUNCTION audit.audit_table(regclass) IS $body$
240240
Add auditing support to the given table. Row-level changes will be logged with full client query text. No cols are ignored.

0 commit comments

Comments
 (0)