In response to "Renato Gravino Neto" <[EMAIL PROTECTED]>: > > The following bug has been logged online: > > Bug reference: 4012 > Logged by: Renato Gravino Neto > Email address: [EMAIL PROTECTED] > PostgreSQL version: 8.2.3 > Operating system: Linux 2.6.24.3 > Description: bug in pg_query > Details: > > in pg_query($con,'select * from cliente where age >= 10;'); > translate to select * from cliente where age >= 10 > > but not execute query
It looks like you're using PHP. I doubt this is a bug in pg_query() (as I'm using it heavily without problem) but I suspect it's a bug somewhere else in your code that's mangling the query string prior to giving it to pg_query(). Please describe the version of PHP you're using, as well as provide a complete example of code that reproduces the problem. I suspect that the command pg_query($con,'select * from cliente where age >= 10;'); is what you're actually executing. I suspect it's something more like pg_query($con, $querystring); and that the actual problem is that $querystring is already broken before you give it to pg_query(). In any event, it's unlikely that this is a bug in PostgreSQL. If you can provide a reproducible test case, it's probably a bug in PHP. -- Bill Moran Collaborative Fusion Inc. http://people.collaborativefusion.com/~wmoran/ [EMAIL PROTECTED] Phone: 412-422-3463x4023 **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. **************************************************************** -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://mail.postgresql.org/mj/mj_wwwusr?domain=postgresql.org&extra=pgsql-bugs