diff options
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r-- | sql/sql_load.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc index 9c2a025e089..40529103f00 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -143,7 +143,8 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list, thd->dupp_field=0; /* TODO: use this conds for 'WITH CHECK OPTIONS' */ Item *unused_conds= 0; - if (setup_tables(thd, table_list, &unused_conds) || + TABLE_LIST *leaves= 0; + if (setup_tables(thd, table_list, &unused_conds, &leaves, 0) || setup_fields(thd, 0, table_list, fields, 1, 0, 0)) DBUG_RETURN(-1); if (thd->dupp_field) |