Commit e00ab5f9 authored by stronk7's avatar stronk7
Browse files

MDL-18577 drop enums support - step3: Fix oci8 adodb set_field_select() without select

parent 762bd0df
......@@ -440,7 +440,8 @@ class oci8po_adodb_moodle_database extends adodb_moodle_database {
$newfield = "$newfield = ?";
array_unshift($params, $newvalue); // add as first param
}
$sql = "UPDATE {$this->prefix}$table SET $newfield WHERE $select";
$select = !empty($select) ? "WHERE $select" : '';
$sql = "UPDATE {$this->prefix}$table SET $newfield $select";
$this->query_start($sql, $params, SQL_QUERY_UPDATE);
$rs = $rs = $this->adodb->Execute($sql, $params);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment