diff options
author | Tomas V.V.Cox <cox@php.net> | 2001-07-11 11:03:27 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2001-07-11 11:03:27 +0000 |
commit | dc60b4d4661a2f155690064c9350e6be9dbe8e77 (patch) | |
tree | 1222b4f8dd35d16af4a58254e5fa666cfb405fcb /pear | |
parent | d70ce7be270549d737ef7efcca961c2908e9402d (diff) | |
download | php-git-dc60b4d4661a2f155690064c9350e6be9dbe8e77.tar.gz |
added LOCK/UNLOCK to mainps queries (reported by Erik Hjortsberg)
Diffstat (limited to 'pear')
-rw-r--r-- | pear/DB.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pear/DB.php b/pear/DB.php index 3e4012ddd4..2f0bd44400 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -297,7 +297,9 @@ class DB */ function isManip($query) { - if (preg_match('/^\s*"?(INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|ALTER|GRANT|REVOKE)\s+/i', $query)) { + $manips = 'INSERT|UPDATE|DELETE|'.'REPLACE|CREATE|DROP|'. + 'ALTER|GRANT|REVOKE|'.'LOCK|UNLOCK'; + if (preg_match('/^\s*"?('.$manips.')\s+/i', $query)) { return true; } return false; |