From 9f0fc7db8b8462625af0ae03b7349062d35bed34 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Sun, 10 Dec 2000 01:32:16 +0000 Subject: [PATCH] * 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. --- pear/DB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0