Index: branches/REL1_17/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -936,9 +936,9 @@ |
937 | 937 | * Query whether a given table exists (in the given schema, or the default mw one if not given) |
938 | 938 | */ |
939 | 939 | function tableExists( $table ) { |
940 | | - $table = trim( $this->tableName($table), '"' ); |
941 | | - $owner = strtoupper( $this->mDBname ); |
942 | | - $SQL = "SELECT 1 FROM all_tables WHERE owner='$owner' AND table_name='$table'"; |
| 940 | + $table = $this->addQuotes( trim( $this->tableName($table), '"' ) ); |
| 941 | + $owner = $this->addQuotes( strtoupper( $this->mDBname ) ); |
| 942 | + $SQL = "SELECT 1 FROM all_tables WHERE owner=$owner AND table_name=$table"; |
943 | 943 | $res = $this->doQuery( $SQL ); |
944 | 944 | if ( $res ) { |
945 | 945 | $count = $res->numRows(); |