summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-05-03 01:16:56 +0200
committerunknown <serg@serg.mylan>2003-05-03 01:16:56 +0200
commit1254fc5c2ed6244b9e1b4a89420d3ed33d864908 (patch)
tree467d41e9c8504f3a06fc667f9a989394e4a6bce7 /sql/sql_udf.cc
parent54b851fc81353847297ac4700cbe6e531a703faf (diff)
downloadmariadb-git-1254fc5c2ed6244b9e1b4a89420d3ed33d864908.tar.gz
INSERT ... UPDATE ... VALUES()
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r--sql/sql_udf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc
index 42f4dddea8d..d191550f396 100644
--- a/sql/sql_udf.cc
+++ b/sql/sql_udf.cc
@@ -429,7 +429,7 @@ int mysql_create_function(THD *thd,udf_func *udf)
if (!(table = open_ltable(thd,&tables,TL_WRITE)))
goto err;
- restore_record(table,2); // Get default values for fields
+ restore_record(table,default_values); // Get default values for fields
table->field[0]->store(u_d->name.str, u_d->name.length, system_charset_info);
table->field[1]->store((longlong) u_d->returns);
table->field[2]->store(u_d->dl,(uint) strlen(u_d->dl), system_charset_info);