Re: local queries vs remote queries
| From: | Chris | Date: | Wed, 20 Sep 2006 06:59:40 +0000 |
| Subject: | Re: local queries vs remote queries | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42383@lists.php.net to get a copy of this message | ||
Stuart Kendrick wrote:
hi chris, right. if i run 'psql -d soma' and then type the first SELECT, i get results ... if i type the second SELECT, i get zero rows. this seemed odd to me ... i wouldn't think that postgres would care. but perhaps it does hmm. ok, i just tried this again ... and now i'm getting results, no matter whether i include single quotes or not, in the syntax of the SELECT and ... now i'm getting the same results, from both the psql interface *and* from my php interface so. where does this leave me. was i hallucinating a few days ago? i find that hard to believe -- i spent a couple hours building that post, along with all the supporting traces ok, if this effect were continuing ... where the single quotes mattered ... what would that lead you to suggest? some issue inside PostGres itself?Well you'll probably need quotes around the date otherwise it could be interpreted as 2006 - 0008 - 0014 ==== ... because you can use math functions in where clauses etc. The quotes around the int field shouldn't matter however. -- Postgresql & php tutorials http://www.designmagick.com/