Lukas Smith wrote: > Yasuo Ohgaki wrote: > >> 3) add bool parameter to pg_execute() >> e.g. pg_execute(resource connection, string stmtname, array params, bool >> ignore_error) > > how would you intent to implement this? > AFAIK there is currently no catalog to find out the prepared statements > in the current sessions (I hear 8.2 will change this). So the only way > to find out is to simply "try it" and cause an error in the session > which could trigger all sorts of error handlers on the database side .. > something I would not expect from calling a php function like this.
I hear about that. Current pg_execute raise E_WARNING if plan is not prepared. The error is annoying since programmers has to try and see if it works. Anyway, since there are no other comments, I'll get rid of the error from pg_execute. Since this is the most efficient way. -- Yasuo Ohgaki -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php