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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user