Re: [GENERAL] Triggers and User Defined Trigger Functions

2005-03-09 Thread Gordan Bobic
Csaba Nagy wrote: DELETE FROM Temp1 WHERE Test = 'test3'; ERROR: syntax error at or near "$2" at character 44 QUERY: INSERT INTO Temp2 (ID, test) VALUES ( $1 $2 ) CONTEXT: PL/pgSQL function "temp1_trigger_delete" line 2 at SQL statement LINE 1: INSERT INTO Temp2 (ID, test) VALUES ( $1 $2 )

Re: [GENERAL] Triggers and User Defined Trigger Functions

2005-03-09 Thread Csaba Nagy
> DELETE FROM Temp1 WHERE Test = 'test3'; > ERROR: syntax error at or near "$2" at character 44 > QUERY: INSERT INTO Temp2 (ID, test) VALUES ( $1 $2 ) > CONTEXT: PL/pgSQL function "temp1_trigger_delete" line 2 at SQL statement > LINE 1: INSERT INTO Temp2 (ID, test) VALUES ( $1 $2 )

Re: [GENERAL] Triggers and User Defined Trigger Functions

2005-03-09 Thread Gordan Bobic
Richard Huxton wrote: Gordan Bobic wrote: Hi, I'm trying to figure out how to do this from the documentation, but I can't figure it out. :-( Here is what I'm trying to do: CREATE TABLE MyTable ( IDbigserial unique, MyDatachar(255), PRIMARY KEY (ID) ); CREATE TABLE Archive_MyTa

Re: [GENERAL] Triggers and User Defined Trigger Functions

2005-03-09 Thread Richard Huxton
Gordan Bobic wrote: Hi, I'm trying to figure out how to do this from the documentation, but I can't figure it out. :-( Here is what I'm trying to do: CREATE TABLE MyTable ( IDbigserial unique, MyDatachar(255), PRIMARY KEY (ID) ); CREATE TABLE Archive_MyTable ( IDbigser

[GENERAL] Triggers and User Defined Trigger Functions

2005-03-09 Thread Gordan Bobic
Hi, I'm trying to figure out how to do this from the documentation, but I can't figure it out. :-( Here is what I'm trying to do: CREATE TABLE MyTable ( ID bigserial unique, MyData char(255), PRIMARY KEY (ID) ); CREATE TABLE Archive_MyTable ( ID bigseria