From: Stig Bakken Date: Sun, 10 Dec 2000 01:32:16 +0000 (+0000) Subject: * DB::isManip counts "REPLACE" as a manipulation command (MySQL specific) X-Git-Tag: php-4.0.5RC1~950 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f0fc7db8b8462625af0ae03b7349062d35bed34;p=php * DB::isManip counts "REPLACE" as a manipulation command (MySQL specific) * renamed DB_common::execute_emulate_query to DB_common::executeEmulateQuery * moved "query" DB method to DB_common, there was duplicated logic in query and simpleQuery in all backends. --- diff --git a/pear/DB.php b/pear/DB.php index 5bddb607fe..d8a60ac801 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -259,7 +259,7 @@ class DB */ function isManip($query) { - if (preg_match('/^\s*(INSERT|UPDATE|DELETE)\s+/i', $query)) { + if (preg_match('/^\s*(INSERT|UPDATE|DELETE|REPLACE)\s+/i', $query)) { return true; } return false;