private $mFieldInfoCache = [];
function __construct( array $p ) {
- global $wgDBprefix;
-
- if ( $p['tablePrefix'] == 'get from global' ) {
- $p['tablePrefix'] = $wgDBprefix;
- }
$p['tablePrefix'] = strtoupper( $p['tablePrefix'] );
parent::__construct( $p );
Hooks::run( 'DatabaseOraclePostInit', [ $this ] );
return new Blob( $b );
}
- function decodeBlob( $b ) {
- if ( $b instanceof Blob ) {
- $b = $b->fetch();
- }
-
- return $b;
- }
-
function unionQueries( $sqls, $all ) {
$glue = ' UNION ALL ';
// Defines must comply with ^define\s*([^\s=]*)\s*=\s?'\{\$([^\}]*)\}';
while ( !feof( $fp ) ) {
if ( $lineCallback ) {
- call_user_func( $lineCallback );
+ $lineCallback();
}
$line = trim( fgets( $fp, 1024 ) );
$sl = strlen( $line ) - 1;
$cmd = $this->replaceVars( $cmd );
if ( $inputCallback ) {
- call_user_func( $inputCallback, $cmd );
+ $inputCallback( $cmd );
}
$res = $this->doQuery( $cmd );
if ( $resultCallback ) {
return 'BITOR(' . $fieldLeft . ', ' . $fieldRight . ')';
}
- function getServer() {
- return $this->server;
- }
-
public function buildGroupConcatField(
$delim, $table, $field, $conds = '', $join_conds = []
) {