Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -422,7 +422,7 @@ |
423 | 423 | * Should return true if unsure. |
424 | 424 | */ |
425 | 425 | function isWriteQuery( $sql ) { |
426 | | - return !preg_match( '/^(?:SELECT|BEGIN|COMMIT|SET|SHOW)\b/i', $sql ); |
| 426 | + return !preg_match( '/^(?:SELECT|BEGIN|COMMIT|SET|SHOW|\(SELECT)\b/i', $sql ); |
427 | 427 | } |
428 | 428 | |
429 | 429 | /** |
— | — | @@ -2853,4 +2853,4 @@ |
2854 | 2854 | public function toString() { |
2855 | 2855 | return $this->str; |
2856 | 2856 | } |
2857 | | -} |
\ No newline at end of file |
| 2857 | +} |