Re: Pear DB Problem/feature and suggestion
| From: | Stig S. Bakken | Date: | Fri, 22 Nov 2002 23:11:41 +0000 |
| Subject: | Re: Pear DB Problem/feature and suggestion | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2814@lists.php.net to get a copy of this message | ||
On Thu, 2002-11-21 at 21:19, Wayne Johnson wrote:
> 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?
>
> 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.
Yep, that error message definitely has to improve. Got bitten by the
same thing myself only yesterday :-)
I'll take a look at adding a "driver not found" error for this.
- Stig