Skip to content

Commit c1d2f64

Browse files
committed
Fix lowercasing error in trigger TIL
1 parent 62ddc97 commit c1d2f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres/use-a-trigger-to-mirror-inserts-to-another-table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ inserting the newly inserted rows into `another_table`.
1313
create or replace function mirror_table_to_another_table()
1414
returns trigger as $mirrored_table$
1515
begin
16-
if (TG_OP = 'insert') then
16+
if (TG_OP = 'INSERT') then
1717
insert into another_table
1818
select * from new_table;
1919
end if;

0 commit comments

Comments
 (0)