|
@@ 325-330 (lines=6) @@
|
| 322 |
|
MediaWiki\suppressWarnings(); |
| 323 |
|
|
| 324 |
|
$this->mLastResult = $stmt = oci_parse( $this->mConn, $sql ); |
| 325 |
|
if ( $stmt === false ) { |
| 326 |
|
$e = oci_error( $this->mConn ); |
| 327 |
|
$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ ); |
| 328 |
|
|
| 329 |
|
return false; |
| 330 |
|
} |
| 331 |
|
|
| 332 |
|
if ( !oci_execute( $stmt, $this->execFlags() ) ) { |
| 333 |
|
$e = oci_error( $stmt ); |
|
@@ 580-585 (lines=6) @@
|
| 577 |
|
$sql .= ')'; |
| 578 |
|
|
| 579 |
|
$this->mLastResult = $stmt = oci_parse( $this->mConn, $sql ); |
| 580 |
|
if ( $stmt === false ) { |
| 581 |
|
$e = oci_error( $this->mConn ); |
| 582 |
|
$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ ); |
| 583 |
|
|
| 584 |
|
return false; |
| 585 |
|
} |
| 586 |
|
foreach ( $row as $col => &$val ) { |
| 587 |
|
$col_info = $this->fieldInfoMulti( $table, $col ); |
| 588 |
|
$col_type = $col_info != false ? $col_info->type() : 'CONSTANT'; |
|
@@ 1024-1029 (lines=6) @@
|
| 1021 |
|
'SELECT * FROM wiki_field_info_full WHERE table_name ' . |
| 1022 |
|
$tableWhere . ' and column_name = \'' . $field . '\'' |
| 1023 |
|
); |
| 1024 |
|
if ( oci_execute( $fieldInfoStmt, $this->execFlags() ) === false ) { |
| 1025 |
|
$e = oci_error( $fieldInfoStmt ); |
| 1026 |
|
$this->reportQueryError( $e['message'], $e['code'], 'fieldInfo QUERY', __METHOD__ ); |
| 1027 |
|
|
| 1028 |
|
return false; |
| 1029 |
|
} |
| 1030 |
|
$res = new ORAResult( $this, $fieldInfoStmt ); |
| 1031 |
|
if ( $res->numRows() == 0 ) { |
| 1032 |
|
if ( is_array( $table ) ) { |
|
@@ 1382-1387 (lines=6) @@
|
| 1379 |
|
} |
| 1380 |
|
|
| 1381 |
|
$this->mLastResult = $stmt = oci_parse( $this->mConn, $sql ); |
| 1382 |
|
if ( $stmt === false ) { |
| 1383 |
|
$e = oci_error( $this->mConn ); |
| 1384 |
|
$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ ); |
| 1385 |
|
|
| 1386 |
|
return false; |
| 1387 |
|
} |
| 1388 |
|
foreach ( $values as $col => &$val ) { |
| 1389 |
|
$col_info = $this->fieldInfoMulti( $table, $col ); |
| 1390 |
|
$col_type = $col_info != false ? $col_info->type() : 'CONSTANT'; |