summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 80bf409f7a4..8094d06c629 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -1409,8 +1409,7 @@ create_function_tail:
sp->m_returns_cs= new_field->charset;
- if (new_field->sql_type == FIELD_TYPE_SET ||
- new_field->sql_type == FIELD_TYPE_ENUM)
+ if (new_field->interval_list.elements)
{
new_field->interval=
sp->create_typelib(&new_field->interval_list);