]> granicus.if.org Git - php/commitdiff
* DB::isManip counts "REPLACE" as a manipulation command (MySQL specific)
authorStig Bakken <ssb@php.net>
Sun, 10 Dec 2000 01:32:16 +0000 (01:32 +0000)
committerStig Bakken <ssb@php.net>
Sun, 10 Dec 2000 01:32:16 +0000 (01:32 +0000)
* 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.

pear/DB.php

index 5bddb607fe9d6fd7407e8dd1d22e64cc0851258f..d8a60ac801627967cc45fda1f690e065ea3321dc 100644 (file)
@@ -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;