Re: Pear DB Problem/feature and suggestion

From: Date: Fri, 22 Nov 2002 10:05:11 +0000
Subject: Re: Pear DB Problem/feature and suggestion
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2807@lists.php.net to get a copy of this message
le 21/11/02 21:19, Wayne Johnson à wdtj@yahoo.com a écrit : > I've always wanted a common DB interface to PHP. Being a Postgres fan > (no flames please) I found it a bit dishartening to see most of the open > source code tied to MySQL. I was just starting to write my own > generalized abstract when.... PEAR. THANK YOU! > > > I've run into, what I think might be a problem, or as least an > undocumented feature of PEAR/DB. I do a query, then a tableinfo and then > attempt to run through the results. If I do the tableinfo, there are no > results. Remove the tableinfo and it works fine. Is this a feature? > Fault? A tableinfo is a result. So it's normal it is overriding your last query result. > I also had some problems doing a connect. I accidently specified > PostgreSQL as the phptype instead of pgsql. The error given was "DB > Error: not found". Might I suggest a bit better error message. I spent > considerable time playing with the other DSN parameters thinking that it > was just unable to connect. You would have saved your time by reading the manual: http://pear.php.net/manual/en/core.db.tut_dsn.php Bertrand Mansion Mamasam

« previous php.pear.general (#2807) next »