1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Fix lowercasing error in trigger TIL

This commit is contained in:
jbranchaud
2023-09-07 12:33:30 -05:00
parent 62ddc97d1b
commit c1d2f64558

View File

@@ -13,7 +13,7 @@ inserting the newly inserted rows into `another_table`.
create or replace function mirror_table_to_another_table()
returns trigger as $mirrored_table$
begin
if (TG_OP = 'insert') then
if (TG_OP = 'INSERT') then
insert into another_table
select * from new_table;
end if;