summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2004-10-26 13:17:37 +0500
committerunknown <bar@mysql.com>2004-10-26 13:17:37 +0500
commite948154c8a7c608afbc763ba6c7a7e6c710421f3 (patch)
treec80ff9014190b9709b869a36e909ec7c598358ef /sql/sql_parse.cc
parent2e7b38016c951d982261f24fc23ca542f7edb39b (diff)
downloadmariadb-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/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 61049360b93..0750403aef5 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -4444,8 +4444,9 @@ bool add_field_to_list(THD *thd, char *field_name, enum_field_types type,
thd->cuted_fields=0;
String str,*res;
res=default_value->val_str(&str);
- (void) find_set(interval, res->ptr(), res->length(), &not_used,
- &not_used2, &not_used3);
+ (void) find_set(interval, res->ptr(), res->length(),
+ &my_charset_bin,
+ &not_used, &not_used2, &not_used3);
if (thd->cuted_fields)
{
net_printf(thd,ER_INVALID_DEFAULT,field_name);