MDB_Querytool
| From: | Lukas Kahwe Smith | Date: | Tue, 28 Mar 2006 16:30:23 +0000 |
| Subject: | MDB_Querytool | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-42015@lists.php.net to get a copy of this message | ||
Hi,
since people repeatedly have asked if there is an MDB2_Querytool I went in and hacked MDB_Querytool to support MDB2. I added a new optional parameter $version to the constructor that defaults to 1 but can be set to 2. If you pass in an MDB or MDB2 instance it automatically detects the version.
I also had to add a few if ($this->_version == 2) to handle some differences but very few actually.
@Lorenzo:
Should I just commit the changes? Do you want to look at the diffs first? Or do you rather not see such a change at all?
BTW: I also noticed some tabs in the code that should be fixed to spaces.
regards,
Lukas