pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Is it possible to get the return value of trigger function using PHP or any other method. 2+ messages / 1 participants [nested] [flat]
* Is it possible to get the return value of trigger function using PHP or any other method. @ 2002-09-14 04:27 shreedhar <shreedhar@lucidindia.net> 0 siblings, 1 reply; 2+ messages in thread From: shreedhar @ 2002-09-14 04:27 UTC (permalink / raw) To: pgsql-admin Hi All, I would like to put one query which is firing trigger in transactions(Begin, commit and rollback). If the trigger function success then i have to commit transaction, if fails i have to rollback. How can I send return value of trigger function after executing the query. Is it possible to get the return value of trigger function using PHP or any other method. I am using PHP as scripting language, and plpgsql for trigger function. Regards, Sreedhar Bhaskararaju 1,2nd Main Road, KottuGardens, Chennai - 600 085 Ph : 4475111 Email : shreedhar@lucidindia.net ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Is it possible to get the return value of trigger function using PHP or any other method. @ 2002-09-15 07:41 shreedhar <shreedhar@lucidindia.net> parent: shreedhar <shreedhar@lucidindia.net> 0 siblings, 0 replies; 2+ messages in thread From: shreedhar @ 2002-09-15 07:41 UTC (permalink / raw) To: pgsql-admin Hi All, I solved my problem, I used begin transactions(begin, commit, rollback) through PHP when i am calling triggered sql statement. 'Raise Error in trigger function making result of triggered SQL Statement's return value as NULL. Using this value we can take decision whether we can commit or rollback whole transaction. Thanks Alot, Let me know is there any other way to do this. Sreedhar ----- Original Message ----- From: "shreedhar" <shreedhar@lucidindia.net> To: "Postgres" <pgsql-admin@postgresql.org> Sent: Saturday, September 14, 2002 9:57 AM Subject: [ADMIN] Is it possible to get the return value of trigger function using PHP or any other method. > Hi All, > > I would like to put one query which is firing trigger in transactions(Begin, > commit and rollback). If the trigger function success then i have to commit > transaction, if fails i have to rollback. > > How can I send return value of trigger function after executing the query. > > Is it possible to get the return value of trigger function using PHP or any > other method. > > I am using PHP as scripting language, and plpgsql for trigger function. > > Regards, > Sreedhar Bhaskararaju 1,2nd Main Road, KottuGardens, Chennai - 600 085 Ph : > 4475111 Email : shreedhar@lucidindia.net > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-09-15 07:41 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2002-09-14 04:27 Is it possible to get the return value of trigger function using PHP or any other method. shreedhar <shreedhar@lucidindia.net> 2002-09-15 07:41 ` shreedhar <shreedhar@lucidindia.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox