File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -184,15 +184,15 @@ DECLARE
184
184
_q_txt text ;
185
185
_ignored_cols_snip text = ' ' ;
186
186
BEGIN
187
- EXECUTE ' DROP TRIGGER IF EXISTS audit_trigger_row ON ' || quote_ident( target_table:: text ) ;
188
- EXECUTE ' DROP TRIGGER IF EXISTS audit_trigger_stm ON ' || quote_ident( target_table:: text ) ;
187
+ EXECUTE ' DROP TRIGGER IF EXISTS audit_trigger_row ON ' || target_table;
188
+ EXECUTE ' DROP TRIGGER IF EXISTS audit_trigger_stm ON ' || target_table;
189
189
190
190
IF audit_rows THEN
191
191
IF array_length(ignored_cols,1 ) > 0 THEN
192
192
_ignored_cols_snip = ' , ' || quote_literal(ignored_cols);
193
193
END IF;
194
194
_q_txt = ' CREATE TRIGGER audit_trigger_row AFTER INSERT OR UPDATE OR DELETE ON ' ||
195
- quote_ident( target_table:: text ) ||
195
+ target_table ||
196
196
' FOR EACH ROW EXECUTE PROCEDURE audit.if_modified_func(' ||
197
197
quote_literal(audit_query_text) || _ignored_cols_snip || ' );' ;
198
198
RAISE NOTICE ' %' ,_q_txt;
@@ -202,7 +202,7 @@ BEGIN
202
202
END IF;
203
203
204
204
_q_txt = ' CREATE TRIGGER audit_trigger_stm AFTER ' || stm_targets || ' ON ' ||
205
- quote_ident( target_table:: text ) ||
205
+ target_table ||
206
206
' FOR EACH STATEMENT EXECUTE PROCEDURE audit.if_modified_func(' ||
207
207
quote_literal(audit_query_text) || ' );' ;
208
208
RAISE NOTICE ' %' ,_q_txt;
You can’t perform that action at this time.
0 commit comments