diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-11 15:15:12 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-11 15:15:12 +0000 |
commit | 25f06b596e460190f32cae6f8e4fa1d0cc03b647 (patch) | |
tree | cba71a21fa5b7ec83c4300c1736201fd3916895e /wp-inst | |
parent | a49094687027a723340cae5d211af891ec9ecfcf (diff) | |
download | wordpress-mu-25f06b596e460190f32cae6f8e4fa1d0cc03b647.tar.gz wordpress-mu-25f06b596e460190f32cae6f8e4fa1d0cc03b647.tar.xz wordpress-mu-25f06b596e460190f32cae6f8e4fa1d0cc03b647.zip |
Capture alter table/create table statements properly.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@159 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst')
-rw-r--r-- | wp-inst/wp-includes/wp-db.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/wp-db.php b/wp-inst/wp-includes/wp-db.php index bfb7f8b..46fcde2 100644 --- a/wp-inst/wp-includes/wp-db.php +++ b/wp-inst/wp-includes/wp-db.php @@ -190,7 +190,7 @@ class wpdb { $this->db_connect( $query ); } $dbh =& $this->dbhglobal; - } elseif ( preg_match("/^\\s*(insert|delete|update|replace) /i",$query) ) { + } elseif ( preg_match("/^\\s*(alter table|create|insert|delete|update|replace) /i",$query) ) { if( false == isset( $this->dbhwrite ) ) { $this->db_connect( $query ); } |