You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ErrorCode: -2147467259
Severity: ERROR, Code: 42601, Line: 1078, Position:
ErrorMessage: syntax error at end of input
The problem is in the instead-of triggers: update and delete statements use the primary key columns:
-- handle the trigger operation
if lower(tg_op) ='insert' then
insert into"tt$tmp"(id)
values (new.id);
return new;
elsif lower(tg_op) ='update' then
update"tt$tmp"set id =new.idwhere ; -- HERE
return new;
elsif lower(tg_op) ='delete' then
deletefrom"tt$tmp"where ; -- AND HERE
return old;
end if;
The text was updated successfully, but these errors were encountered:
yallie
changed the title
Temporary tables without the primary key
Temporary tables without the primary key aren't handled
Mar 20, 2017
yallie
changed the title
Temporary tables without the primary key aren't handled
Temp tables without the PK aren't converted
Mar 20, 2017
Here is the test case:
And the output is:
The problem is in the instead-of triggers: update and delete statements use the primary key columns:
The text was updated successfully, but these errors were encountered: