diff -cwr mediawiki-1.22.1-patched/includes/db/DatabasePostgres.php mediawiki-1.22.1/includes/db/DatabasePostgres.php *** mediawiki-1.22.1-patched/includes/db/DatabasePostgres.php Wed Jan 15 18:24:22 2014 --- mediawiki-1.22.1/includes/db/DatabasePostgres.php Tue Jan 14 06:50:42 2014 *************** *** 729,735 **** * so causes a DB error. This wrapper checks which tables can be locked and adjusts it accordingly. */ function selectSQLText( $table, $vars, $conds = '', $fname = __METHOD__, $options = array(), $join_conds = array() ) { - if ( is_array($options) ) { $forUpdateKey = array_search( 'FOR UPDATE', $options ); if ( $forUpdateKey !== false && $join_conds ) { unset( $options[$forUpdateKey] ); --- 729,734 ---- *************** *** 740,746 **** } } } - } return parent::selectSQLText( $table, $vars, $conds, $fname, $options, $join_conds ); } --- 739,744 ----