summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-03-18 15:14:36 +0200
committerbell@sanja.is.com.ua <>2004-03-18 15:14:36 +0200
commit2b45b53066da7181c9cd7551331c2439c03d8793 (patch)
treecd9a05b7a39b8aa75fa136b3e98ef798762bbcb8 /sql/sql_parse.cc
parent8035ce40eca47844ecda29d48e84639f9c9334d9 (diff)
downloadmariadb-git-2b45b53066da7181c9cd7551331c2439c03d8793.tar.gz
DBUG_ASSERT(fixed == 1); added to val*
small optimisation in signed_literal
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