DB::isNotManip
| From: | Tomas V.V.Cox | Date: | Sun, 22 Apr 2001 15:51:57 +0000 |
| Subject: | DB::isNotManip | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-288@lists.php.net to get a copy of this message | ||
Hi again (hope you don't get tired of me :),
Many extentions use DB::isManip to return or not a result obj. The
problem with it, is that it doesn't cover all the SQL statments. Now it
covers INSERT, CREATE, ... but for example doesn't cover specific
backends statements.
For example I use some times "SET DATESYLE=..." for PostgreSQL. Now
there is no problem because the DB/pgsql.php do ereg('SELECT'), but with
the others like MySQL, DB::isManip is used.
IMHO it could better to do a DB::isNotManip that only checks for a
SELECT, than trying to cover all the posible SQL statements with
isManip.
I can implement this if you want.
Tomas V.V.Cox