Re: PEAR DB: cannot use more than one database connection
| From: | Martin Jansen | Date: | Tue, 16 Oct 2001 15:45:38 +0000 |
| Subject: | Re: PEAR DB: cannot use more than one database connection | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-392@lists.php.net to get a copy of this message | ||
On Tue, 16 Oct 2001 17:22:27 +0200, Ferenc Engard wrote:
>If I am trying to use more than one connection, then it seems that PEAR
>overwrites the first connection's data with the second, at least at the
>query time.
>
>I have an object "A" returned by DB::connect(). I can execute queries
>with it as long as I don't create another DB object "B" with
>DB::connect. At that point the "A" object's queries return with error,
>and from the error message it reveals that it tries to execute the query
>in the "B" connection's database!
Have you tried the latest version of PEAR DB? Could you please provide
the shortest test script to demonstrate the error?
- Martin