pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #6550: Querry failed while using throung php program. 2+ messages / 2 participants [nested] [flat]
* BUG #6550: Querry failed while using throung php program. @ 2012-03-22 06:00 mkkrish@hotmail.com 0 siblings, 1 reply; 2+ messages in thread From: mkkrish@hotmail.com @ 2012-03-22 06:00 UTC (permalink / raw) To: pgsql-bugs The following bug has been logged on the website: Bug reference: 6550 Logged by: M K Krishnan Email address: mkkrish@hotmail.com PostgreSQL version: 9.0.4 Operating system: Windows 7 Description: 11Variety One Warning: pg_query(): Query failed: ERROR: syntax error at or near "and" LINE 1: select * from variety_dir where crop_cd= and variety_cd=1 ^ in C:\Program Files (x86)\PostgreSQL\EnterpriseDB-ApachePhp\apache\www\agrimetnew\variety_upd.php on line 32 Warning: pg_num_rows() expects parameter 1 to be resource, boolean given in C:\Program Files (x86)\PostgreSQL\EnterpriseDB-ApachePhp\apache\www\agrimetnew\variety_upd.php on line 33 No Record Found . Query works from SQL Screen. When uses through php it fails. ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #6550: Querry failed while using throung php program. @ 2012-03-22 21:22 Marti Raudsepp <marti@juffo.org> parent: mkkrish@hotmail.com 0 siblings, 0 replies; 2+ messages in thread From: Marti Raudsepp @ 2012-03-22 21:22 UTC (permalink / raw) To: mkkrish@hotmail.com; +Cc: pgsql-bugs On Thu, Mar 22, 2012 at 08:00, <mkkrish@hotmail.com> wrote: > LINE 1: select * from variety_dir where crop_cd= and variety_cd=1 You're missing a value for the crop_cd= clause. This error is supposed to occur. > Query works from SQL Screen. When uses through php it fails. You probably executed a different query from there. Regards, Marti ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2012-03-22 21:22 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2012-03-22 06:00 BUG #6550: Querry failed while using throung php program. mkkrish@hotmail.com 2012-03-22 21:22 ` Marti Raudsepp <marti@juffo.org>
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