mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
Merge branch 'MDL-47874' of git://github.com/stronk7/moodle
This commit is contained in:
commit
c293eb004b
@ -2288,7 +2288,7 @@ abstract class moodle_database {
|
||||
if (core_text::strlen($search) < core_text::strlen($replace)) {
|
||||
$colsize = $column->max_length;
|
||||
$sql = "UPDATE {".$table."}
|
||||
SET $columnname = SUBSTRING(REPLACE($columnname, ?, ?), 1, $colsize)
|
||||
SET $columnname = " . $this->sql_substr("REPLACE(" . $columnname . ", ?, ?)", 1, $colsize) . "
|
||||
WHERE $columnname IS NOT NULL";
|
||||
}
|
||||
$this->execute($sql, array($search, $replace));
|
||||
|
@ -1731,6 +1731,16 @@ class oci_native_moodle_database extends moodle_database {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Does this driver support tool_replace?
|
||||
*
|
||||
* @since Moodle 2.8
|
||||
* @return bool
|
||||
*/
|
||||
public function replace_all_text_supported() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function session_lock_supported() {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user