Index: trunk/phase3/includes/search/SearchPostgres.php |
— | — | @@ -148,7 +148,7 @@ |
149 | 149 | |
150 | 150 | ## We need a separate query here so gin does not complain about empty searches |
151 | 151 | $SQL = "SELECT to_tsquery($prefix $searchstring)"; |
152 | | - $res = $this->db->doQuery($SQL); |
| 152 | + $res = $this->db->query($SQL); |
153 | 153 | if (!$res) { |
154 | 154 | ## TODO: Better output (example to catch: one 'two) |
155 | 155 | die ("Sorry, that was not a valid search string. Please go back and try again"); |
— | — | @@ -206,7 +206,7 @@ |
207 | 207 | $SQL = "UPDATE pagecontent SET textvector = NULL WHERE old_id IN ". |
208 | 208 | "(SELECT rev_text_id FROM revision WHERE rev_page = " . intval( $pageid ) . |
209 | 209 | " ORDER BY rev_text_id DESC OFFSET 1)"; |
210 | | - $this->db->doQuery($SQL); |
| 210 | + $this->db->query($SQL); |
211 | 211 | return true; |
212 | 212 | } |
213 | 213 | |
Index: trunk/phase3/includes/installer/OracleUpdater.php |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | public function doUpdates( $purge = true ) { |
95 | 95 | parent::doUpdates(); |
96 | 96 | |
97 | | - $this->db->doQuery( 'BEGIN fill_wiki_info; END;' ); |
| 97 | + $this->db->query( 'BEGIN fill_wiki_info; END;' ); |
98 | 98 | } |
99 | 99 | |
100 | 100 | } |
Index: trunk/phase3/includes/installer/PostgresUpdater.php |
— | — | @@ -523,7 +523,7 @@ |
524 | 524 | |
525 | 525 | $safeuser = $this->db->addQuotes( $wgDBuser ); |
526 | 526 | $SQL = "SELECT array_to_string(useconfig,'*') FROM pg_catalog.pg_user WHERE usename = $safeuser"; |
527 | | - $config = pg_fetch_result( $this->db->doQuery( $SQL ), 0, 0 ); |
| 527 | + $config = pg_fetch_result( $this->db->query( $SQL ), 0, 0 ); |
528 | 528 | $conf = array(); |
529 | 529 | foreach ( explode( '*', $config ) as $c ) { |
530 | 530 | list( $x, $y ) = explode( '=', $c ); |
— | — | @@ -546,8 +546,8 @@ |
547 | 547 | } |
548 | 548 | $search_path = str_replace( ', ,', ',', $search_path ); |
549 | 549 | if ( array_key_exists( 'search_path', $conf ) === false || $search_path != $conf['search_path'] ) { |
550 | | - $this->db->doQuery( "ALTER USER $wgDBuser SET search_path = $search_path" ); |
551 | | - $this->db->doQuery( "SET search_path = $search_path" ); |
| 550 | + $this->db->query( "ALTER USER $wgDBuser SET search_path = $search_path" ); |
| 551 | + $this->db->query( "SET search_path = $search_path" ); |
552 | 552 | } else { |
553 | 553 | $path = $conf['search_path']; |
554 | 554 | $this->output( "... search_path for user \"$wgDBuser\" looks correct ($path)\n" ); |
— | — | @@ -562,8 +562,8 @@ |
563 | 563 | foreach ( $goodconf as $key => $value ) { |
564 | 564 | if ( !array_key_exists( $key, $conf ) or $conf[$key] !== $value ) { |
565 | 565 | $this->output( "Setting $key to '$value' for user \"$wgDBuser\"\n" ); |
566 | | - $this->db->doQuery( "ALTER USER $wgDBuser SET $key = '$value'" ); |
567 | | - $this->db->doQuery( "SET $key = '$value'" ); |
| 566 | + $this->db->query( "ALTER USER $wgDBuser SET $key = '$value'" ); |
| 567 | + $this->db->query( "SET $key = '$value'" ); |
568 | 568 | } else { |
569 | 569 | $this->output( "... default value of \"$key\" is correctly set to \"$value\" for user \"$wgDBuser\"\n" ); |
570 | 570 | } |
Index: trunk/phase3/includes/installer/OracleInstaller.php |
— | — | @@ -195,7 +195,7 @@ |
196 | 196 | public function createTables() { |
197 | 197 | $status = parent::createTables(); |
198 | 198 | |
199 | | - $this->db->doQuery( 'BEGIN fill_wiki_info; END;' ); |
| 199 | + $this->db->query( 'BEGIN fill_wiki_info; END;' ); |
200 | 200 | |
201 | 201 | return $status; |
202 | 202 | } |
Index: trunk/phase3/includes/installer/PostgresInstaller.php |
— | — | @@ -129,14 +129,14 @@ |
130 | 130 | $ctest = 'mediawiki_test_table'; |
131 | 131 | $safeschema = $conn->addIdentifierQuotes( $schema ); |
132 | 132 | if ( $conn->tableExists( $ctest, $schema ) ) { |
133 | | - $conn->doQuery( "DROP TABLE $safeschema.$ctest" ); |
| 133 | + $conn->query( "DROP TABLE $safeschema.$ctest" ); |
134 | 134 | } |
135 | | - $res = $conn->doQuery( "CREATE TABLE $safeschema.$ctest(a int)" ); |
| 135 | + $res = $conn->query( "CREATE TABLE $safeschema.$ctest(a int)" ); |
136 | 136 | if ( !$res ) { |
137 | 137 | $status->fatal( 'config-install-pg-schema-failed', |
138 | 138 | $this->getVar( 'wgDBuser'), $schema ); |
139 | 139 | } |
140 | | - $conn->doQuery( "DROP TABLE $safeschema.$ctest" ); |
| 140 | + $conn->query( "DROP TABLE $safeschema.$ctest" ); |
141 | 141 | |
142 | 142 | return $status; |
143 | 143 | } |