includes/installer/DatabaseUpdater.php 1 location
|
@@ 1128-1135 (lines=8) @@
|
1125 |
|
} |
1126 |
|
|
1127 |
|
$profileToDb = false; |
1128 |
|
if ( isset( $wgProfiler['output'] ) ) { |
1129 |
|
$out = $wgProfiler['output']; |
1130 |
|
if ( $out === 'db' ) { |
1131 |
|
$profileToDb = true; |
1132 |
|
} elseif ( is_array( $out ) && in_array( 'db', $out ) ) { |
1133 |
|
$profileToDb = true; |
1134 |
|
} |
1135 |
|
} |
1136 |
|
|
1137 |
|
if ( $profileToDb && !$this->db->tableExists( 'profiling', __METHOD__ ) ) { |
1138 |
|
$this->applyPatch( 'patch-profiling.sql', false, 'Add profiling table' ); |
includes/libs/rdbms/database/DatabasePostgres.php 1 location
|
@@ 552-558 (lines=7) @@
|
549 |
|
$options = [ $options ]; |
550 |
|
} |
551 |
|
|
552 |
|
if ( isset( $args[0] ) && is_array( $args[0] ) ) { |
553 |
|
$multi = true; |
554 |
|
$keys = array_keys( $args[0] ); |
555 |
|
} else { |
556 |
|
$multi = false; |
557 |
|
$keys = array_keys( $args ); |
558 |
|
} |
559 |
|
|
560 |
|
// If IGNORE is set, we use savepoints to emulate mysql's behavior |
561 |
|
$savepoint = $olde = null; |