diff options
author | unknown <bar@mysql.com> | 2004-10-26 13:17:37 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2004-10-26 13:17:37 +0500 |
commit | e948154c8a7c608afbc763ba6c7a7e6c710421f3 (patch) | |
tree | c80ff9014190b9709b869a36e909ec7c598358ef /sql/set_var.cc | |
parent | 2e7b38016c951d982261f24fc23ca542f7edb39b (diff) | |
download | mariadb-git-e948154c8a7c608afbc763ba6c7a7e6c710421f3.tar.gz |
Bug 6206: ENUMs are not case sensitive even if declared BINARY
The same problem with SET columns:
find_set() now executes find_type2() to do charset aware search,
instead of always using system_charset_info comparison.
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index 60a51314742..c609c3e4793 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -1460,7 +1460,9 @@ bool sys_var::check_set(THD *thd, set_var *var, TYPELIB *enum_names) goto err; var->save_result.ulong_value= ((ulong) find_set(enum_names, res->c_ptr(), - res->length(), &error, &error_len, + res->length(), + NULL, + &error, &error_len, ¬_used)); if (error_len) { |