mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-23925 reverting changes, we need to fix uniqueness and collation issues first
This commit is contained in:
parent
1ab0d50b80
commit
9a1e8c5e52
@ -1098,7 +1098,9 @@ class mssql_native_moodle_database extends moodle_database {
|
||||
* @return string SQL fragment
|
||||
*/
|
||||
public function sql_binary_equal($string1, $string2) {
|
||||
return "$string1 COLLATE Latin1_General_CS_AS = $string2";
|
||||
//TODO: we need to make sure this does not break unique indexes
|
||||
//return "$string1 COLLATE Latin1_General_CS_AS = $string2";
|
||||
return "$string1 = $string2";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1033,7 +1033,9 @@ class mysqli_native_moodle_database extends moodle_database {
|
||||
* @return string SQL fragment
|
||||
*/
|
||||
public function sql_binary_equal($string1, $string2) {
|
||||
return "BINARY $string1 = $string2";
|
||||
//TODO: we need to make sure this does not break unique indexes
|
||||
//return "BINARY $string1 = $string2";
|
||||
return "$string1 = $string2";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1192,7 +1192,9 @@ class sqlsrv_native_moodle_database extends moodle_database {
|
||||
* @return string SQL fragment
|
||||
*/
|
||||
public function sql_binary_equal($string1, $string2) {
|
||||
return "$string1 COLLATE Latin1_General_CS_AS = $string2";
|
||||
//TODO: we need to make sure this does not break unique indexes
|
||||
//return "$string1 COLLATE Latin1_General_CS_AS = $string2";
|
||||
return "$string1 = $string2";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user