$this->setFlag( DBO_PERSISTENT );
}
- $session_mode = $this->flags & DBO_SYSDBA ? OCI_SYSDBA : OCI_DEFAULT;
+ $session_mode = ( $this->flags & DBO_SYSDBA ) ? OCI_SYSDBA : OCI_DEFAULT;
Wikimedia\suppressWarnings();
if ( $this->flags & DBO_PERSISTENT ) {
// count-alias subselect fields to avoid abigious definition errors
$i = 0;
foreach ( $varMap as &$val ) {
- $val = $val . ' field' . ( $i++ );
+ $val .= ' field' . $i;
+ $i++;
}
$selectSql = $this->selectSQLText(
}
}
- public function upsert( $table, array $rows, array $uniqueIndexes, array $set,
+ public function upsert( $table, array $rows, $uniqueIndexes, array $set,
$fname = __METHOD__
) {
if ( $rows === [] ) {