Re: Re: DB: Changing database during script execution
| From: | Martin Jansen | Date: | Mon, 22 Jul 2002 17:36:10 +0000 |
| Subject: | Re: Re: DB: Changing database during script execution | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7866@lists.php.net to get a copy of this message | ||
On Mon Jul 22, 2002 at 06:4348PM +0200, Tomas V.V.Cox wrote:
> Lukas Smith wrote:
> > MDB has setDatase($dbname)
> > This method returns the old method and sets the database to $dbname.
>
> Yeah, which basically does a disconnect() and connect(), the same I
> propossed to Martin (note that I'm talking about the drivers in general
> not MySQL specificly).
Agreed. But your solution isn't that elegant than having a method
that can change the database name. (Of course having such a method
does only make sense if it can be done with all supported DBMS, as I
already pointed out in an earlier mail.)
- Martin
--
Martin Jansen - mail@martin-jansen.de
http://martinjansen.com/