includes/db/DatabasePostgres.php 1 location
|
@@ 795-801 (lines=7) @@
|
| 792 |
|
$options = [ $options ]; |
| 793 |
|
} |
| 794 |
|
|
| 795 |
|
if ( isset( $args[0] ) && is_array( $args[0] ) ) { |
| 796 |
|
$multi = true; |
| 797 |
|
$keys = array_keys( $args[0] ); |
| 798 |
|
} else { |
| 799 |
|
$multi = false; |
| 800 |
|
$keys = array_keys( $args ); |
| 801 |
|
} |
| 802 |
|
|
| 803 |
|
// If IGNORE is set, we use savepoints to emulate mysql's behavior |
| 804 |
|
$savepoint = null; |
includes/installer/DatabaseUpdater.php 1 location
|
@@ 1085-1092 (lines=8) @@
|
| 1082 |
|
} |
| 1083 |
|
|
| 1084 |
|
$profileToDb = false; |
| 1085 |
|
if ( isset( $wgProfiler['output'] ) ) { |
| 1086 |
|
$out = $wgProfiler['output']; |
| 1087 |
|
if ( $out === 'db' ) { |
| 1088 |
|
$profileToDb = true; |
| 1089 |
|
} elseif ( is_array( $out ) && in_array( 'db', $out ) ) { |
| 1090 |
|
$profileToDb = true; |
| 1091 |
|
} |
| 1092 |
|
} |
| 1093 |
|
|
| 1094 |
|
if ( $profileToDb && !$this->db->tableExists( 'profiling', __METHOD__ ) ) { |
| 1095 |
|
$this->applyPatch( 'patch-profiling.sql', false, 'Add profiling table' ); |