|
@@ 399-404 (lines=6) @@
|
| 396 |
|
MediaWiki\suppressWarnings(); |
| 397 |
|
|
| 398 |
|
$this->mLastResult = $stmt = oci_parse( $this->mConn, $sql ); |
| 399 |
|
if ( $stmt === false ) { |
| 400 |
|
$e = oci_error( $this->mConn ); |
| 401 |
|
$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ ); |
| 402 |
|
|
| 403 |
|
return false; |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
if ( !oci_execute( $stmt, $this->execFlags() ) ) { |
| 407 |
|
$e = oci_error( $stmt ); |
|
@@ 642-647 (lines=6) @@
|
| 639 |
|
$sql .= ')'; |
| 640 |
|
|
| 641 |
|
$this->mLastResult = $stmt = oci_parse( $this->mConn, $sql ); |
| 642 |
|
if ( $stmt === false ) { |
| 643 |
|
$e = oci_error( $this->mConn ); |
| 644 |
|
$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ ); |
| 645 |
|
|
| 646 |
|
return false; |
| 647 |
|
} |
| 648 |
|
foreach ( $row as $col => &$val ) { |
| 649 |
|
$col_info = $this->fieldInfoMulti( $table, $col ); |
| 650 |
|
$col_type = $col_info != false ? $col_info->type() : 'CONSTANT'; |
|
@@ 1085-1090 (lines=6) @@
|
| 1082 |
|
'SELECT * FROM wiki_field_info_full WHERE table_name ' . |
| 1083 |
|
$tableWhere . ' and column_name = \'' . $field . '\'' |
| 1084 |
|
); |
| 1085 |
|
if ( oci_execute( $fieldInfoStmt, $this->execFlags() ) === false ) { |
| 1086 |
|
$e = oci_error( $fieldInfoStmt ); |
| 1087 |
|
$this->reportQueryError( $e['message'], $e['code'], 'fieldInfo QUERY', __METHOD__ ); |
| 1088 |
|
|
| 1089 |
|
return false; |
| 1090 |
|
} |
| 1091 |
|
$res = new ORAResult( $this, $fieldInfoStmt ); |
| 1092 |
|
if ( $res->numRows() == 0 ) { |
| 1093 |
|
if ( is_array( $table ) ) { |
|
@@ 1437-1442 (lines=6) @@
|
| 1434 |
|
} |
| 1435 |
|
|
| 1436 |
|
$this->mLastResult = $stmt = oci_parse( $this->mConn, $sql ); |
| 1437 |
|
if ( $stmt === false ) { |
| 1438 |
|
$e = oci_error( $this->mConn ); |
| 1439 |
|
$this->reportQueryError( $e['message'], $e['code'], $sql, __METHOD__ ); |
| 1440 |
|
|
| 1441 |
|
return false; |
| 1442 |
|
} |
| 1443 |
|
foreach ( $values as $col => &$val ) { |
| 1444 |
|
$col_info = $this->fieldInfoMulti( $table, $col ); |
| 1445 |
|
$col_type = $col_info != false ? $col_info->type() : 'CONSTANT'; |