dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcdc0f4
)
Don't count unions of bracketed selects as being write queries
author
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 6 Jan 2010 04:05:49 +0000
(
04:05
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 6 Jan 2010 04:05:49 +0000
(
04:05
+0000)
includes/db/Database.php
patch
|
blob
|
history
diff --git
a/includes/db/Database.php
b/includes/db/Database.php
index
36f34a3
..
b1b0441
100644
(file)
--- a/
includes/db/Database.php
+++ b/
includes/db/Database.php
@@
-422,7
+422,7
@@
abstract class DatabaseBase {
* Should return true if unsure.
*/
function isWriteQuery( $sql ) {
- return !preg_match( '/^(?:SELECT|BEGIN|COMMIT|SET|SHOW)\b/i', $sql );
+ return !preg_match( '/^(?:SELECT|BEGIN|COMMIT|SET|SHOW
|\(SELECT
)\b/i', $sql );
}
/**
@@
-2853,4
+2853,4
@@
class LikeMatch {
public function toString() {
return $this->str;
}
-}
\ No newline at end of file
+}