mirror of
https://github.com/jbranchaud/til
synced 2026-01-05 16:18:01 +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()
|
create or replace function mirror_table_to_another_table()
|
||||||
returns trigger as $mirrored_table$
|
returns trigger as $mirrored_table$
|
||||||
begin
|
begin
|
||||||
if (TG_OP = 'insert') then
|
if (TG_OP = 'INSERT') then
|
||||||
insert into another_table
|
insert into another_table
|
||||||
select * from new_table;
|
select * from new_table;
|
||||||
end if;
|
end if;
|
||||||
|
|||||||
Reference in New Issue
Block a user