EXECUTE ''UPDATE test_table SET test_col '' || quote_literal(NEW.test_col2) || '';'';


Seems it'd be easier without EXECUTE:

UPDATE test_table SET test_col = NEW.test_col2;

Actually, yes you're right - we don't need EXECUTE in our case. However, it still doesn't answer the question of how you use quote_literal on a boolean value?


Chris


---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to