summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index ed72c14b849..dded12dd8d3 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -3991,6 +3991,10 @@ bool add_field_to_list(THD *thd, char *field_name, enum_field_types type,
if (default_value)
{
+ if (default_value->fix_fields(thd, 0, &default_value))
+ {
+ DBUG_RETURN(1);
+ }
/*
We allow specifying value for first TIMESTAMP column
altough it is silently ignored. This should be fixed in 4.1