MDL-23925 reverting changes, we need to fix uniqueness and collation issues first

This commit is contained in:
Petr Skoda 2010-08-25 09:35:18 +00:00
parent 1ab0d50b80
commit 9a1e8c5e52
3 changed files with 9 additions and 3 deletions

View File

@ -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";
}
/**

View File

@ -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";
}
/**

View File

@ -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";
}
/**