return $this->query( "ATTACH DATABASE $file AS $name", $fname );
}
- function isWriteQuery( $sql ) {
+ protected function isWriteQuery( $sql ) {
return parent::isWriteQuery( $sql ) && !preg_match( '/^(ATTACH|PRAGMA)\b/i', $sql );
}
function numFields( $res ) {
$r = $res instanceof ResultWrapper ? $res->result : $res;
if ( is_array( $r ) && count( $r ) > 0 ) {
- // The size of the result array is twice the number of fields. (Bug: 65578)
+ // The size of the result array is twice the number of fields. (T67578)
return count( $r[0] ) / 2;
} else {
// If the result is empty return 0