1[NO_PID]: ECPGdebug: set to 1 2[NO_PID]: sqlca: code: 0, state: 00000 3[NO_PID]: ECPGconnect: opening database ecpg1_regression on <DEFAULT> port <DEFAULT> 4[NO_PID]: sqlca: code: 0, state: 00000 5[NO_PID]: ECPGsetcommit on line 13: action "on"; connection "ecpg1_regression" 6[NO_PID]: sqlca: code: 0, state: 00000 7[NO_PID]: ecpg_execute on line 17: query: create table My_Table ( Item1 int , Item2 text ); with 0 parameter(s) on connection ecpg1_regression 8[NO_PID]: sqlca: code: 0, state: 00000 9[NO_PID]: ecpg_execute on line 17: using PQexec 10[NO_PID]: sqlca: code: 0, state: 00000 11[NO_PID]: ecpg_process_output on line 17: OK: CREATE TABLE 12[NO_PID]: sqlca: code: 0, state: 00000 13[NO_PID]: ecpg_execute on line 18: query: create table Log ( name text , w text ); with 0 parameter(s) on connection ecpg1_regression 14[NO_PID]: sqlca: code: 0, state: 00000 15[NO_PID]: ecpg_execute on line 18: using PQexec 16[NO_PID]: sqlca: code: 0, state: 00000 17[NO_PID]: ecpg_process_output on line 18: OK: CREATE TABLE 18[NO_PID]: sqlca: code: 0, state: 00000 19[NO_PID]: ecpg_execute on line 20: query: create function My_Table_Check ( ) returns trigger as $test$ BEGIN INSERT INTO Log VALUES(TG_NAME, TG_WHEN); RETURN NEW; END; $test$ language plpgsql; with 0 parameter(s) on connection ecpg1_regression 20[NO_PID]: sqlca: code: 0, state: 00000 21[NO_PID]: ecpg_execute on line 20: using PQexec 22[NO_PID]: sqlca: code: 0, state: 00000 23[NO_PID]: ecpg_process_output on line 20: OK: CREATE FUNCTION 24[NO_PID]: sqlca: code: 0, state: 00000 25[NO_PID]: ecpg_execute on line 28: query: create trigger My_Table_Check_Trigger before insert on My_Table for each row execute procedure My_Table_Check ( ); with 0 parameter(s) on connection ecpg1_regression 26[NO_PID]: sqlca: code: 0, state: 00000 27[NO_PID]: ecpg_execute on line 28: using PQexec 28[NO_PID]: sqlca: code: 0, state: 00000 29[NO_PID]: ecpg_process_output on line 28: OK: CREATE TRIGGER 30[NO_PID]: sqlca: code: 0, state: 00000 31[NO_PID]: ecpg_execute on line 34: query: insert into My_Table values ( 1234 , 'Some random text' ); with 0 parameter(s) on connection ecpg1_regression 32[NO_PID]: sqlca: code: 0, state: 00000 33[NO_PID]: ecpg_execute on line 34: using PQexec 34[NO_PID]: sqlca: code: 0, state: 00000 35[NO_PID]: ecpg_process_output on line 34: OK: INSERT 0 1 36[NO_PID]: sqlca: code: 0, state: 00000 37[NO_PID]: ecpg_execute on line 35: query: insert into My_Table values ( 5678 , 'The Quick Brown' ); with 0 parameter(s) on connection ecpg1_regression 38[NO_PID]: sqlca: code: 0, state: 00000 39[NO_PID]: ecpg_execute on line 35: using PQexec 40[NO_PID]: sqlca: code: 0, state: 00000 41[NO_PID]: ecpg_process_output on line 35: OK: INSERT 0 1 42[NO_PID]: sqlca: code: 0, state: 00000 43[NO_PID]: ecpg_execute on line 36: query: select name from Log limit 1; with 0 parameter(s) on connection ecpg1_regression 44[NO_PID]: sqlca: code: 0, state: 00000 45[NO_PID]: ecpg_execute on line 36: using PQexec 46[NO_PID]: sqlca: code: 0, state: 00000 47[NO_PID]: ecpg_process_output on line 36: correctly got 1 tuples with 1 fields 48[NO_PID]: sqlca: code: 0, state: 00000 49[NO_PID]: ecpg_get_data on line 36: RESULT: my_table_check_trigger offset: -1; array: no 50[NO_PID]: sqlca: code: 0, state: 00000 51[NO_PID]: ecpg_execute on line 39: query: drop trigger My_Table_Check_Trigger on My_Table; with 0 parameter(s) on connection ecpg1_regression 52[NO_PID]: sqlca: code: 0, state: 00000 53[NO_PID]: ecpg_execute on line 39: using PQexec 54[NO_PID]: sqlca: code: 0, state: 00000 55[NO_PID]: ecpg_process_output on line 39: OK: DROP TRIGGER 56[NO_PID]: sqlca: code: 0, state: 00000 57[NO_PID]: ecpg_execute on line 40: query: drop function My_Table_Check ( ); with 0 parameter(s) on connection ecpg1_regression 58[NO_PID]: sqlca: code: 0, state: 00000 59[NO_PID]: ecpg_execute on line 40: using PQexec 60[NO_PID]: sqlca: code: 0, state: 00000 61[NO_PID]: ecpg_process_output on line 40: OK: DROP FUNCTION 62[NO_PID]: sqlca: code: 0, state: 00000 63[NO_PID]: ecpg_execute on line 41: query: drop table Log; with 0 parameter(s) on connection ecpg1_regression 64[NO_PID]: sqlca: code: 0, state: 00000 65[NO_PID]: ecpg_execute on line 41: using PQexec 66[NO_PID]: sqlca: code: 0, state: 00000 67[NO_PID]: ecpg_process_output on line 41: OK: DROP TABLE 68[NO_PID]: sqlca: code: 0, state: 00000 69[NO_PID]: ecpg_execute on line 42: query: drop table My_Table; with 0 parameter(s) on connection ecpg1_regression 70[NO_PID]: sqlca: code: 0, state: 00000 71[NO_PID]: ecpg_execute on line 42: using PQexec 72[NO_PID]: sqlca: code: 0, state: 00000 73[NO_PID]: ecpg_process_output on line 42: OK: DROP TABLE 74[NO_PID]: sqlca: code: 0, state: 00000 75[NO_PID]: ecpg_finish: connection ecpg1_regression closed 76[NO_PID]: sqlca: code: 0, state: 00000 77