it's too bad because i think that passing arguments in a notification is a good feature. "Notification" class for the trigger class name,no??
----- Original Message ----- From: "Jeroen T. Vermeulen" <[EMAIL PROTECTED]> To: "Luis Silva" <[EMAIL PROTECTED]> Cc: <[email protected]> Sent: Monday, April 03, 2006 4:21 AM Subject: Re: [libpqxx-general] trigger from database > On Fri, March 31, 2006 23:53, Luis Silva wrote: >> Hi, tks for the answer! but is it possible to send some attributes from >> the >> database to the code that inherited the class trigger. tks again > > From the database to the client? Unfortunately, no. This is actually a > limitation of how the entire mechanism works. The idea was brought up > again recently on the PostgreSQL hackers list, but stranded on some > profound technical objection IIRC. > > One thing you _can_ do, and which may help in some cases, is to create > multiple triggers with different (perhaps similar) names. Also, you can > "pass" parameters from the code that creates your trigger object to the > invocation by setting member variables in your trigger object. > > > Jeroen > > > _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
