diff options
author | unknown <bell@sanja.is.com.ua> | 2002-11-04 22:12:45 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-11-04 22:12:45 +0200 |
commit | 53a386ca874d69d471eaf1600c2f55e063e03c5a (patch) | |
tree | 12c9202ba6e7b1dca9c4741f7b30fad9fa4a7d40 /sql/sql_update.cc | |
parent | 07573b03afc40bc4735411dab634674932b9de70 (diff) | |
download | mariadb-git-53a386ca874d69d471eaf1600c2f55e063e03c5a.tar.gz |
moved similar code to function
onversion with check
sql/item.cc:
removed similar code
sql/item_sum.cc:
conversion with check
sql/sql_delete.cc:
conversion with check
sql/sql_derived.cc:
style fix
sql/sql_lex.cc:
conversion with check
moved similar code to function
sql/sql_lex.h:
conversion with check
moved similar code to function
sql/sql_parse.cc:
conversion with check
sql/sql_update.cc:
conversion with check
sql/sql_yacc.yy:
conversion with check
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r-- | sql/sql_update.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index b00a8ba851c..be69935a49c 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -508,14 +508,7 @@ multi_update::prepare(List<Item> &values, SELECT_LEX_UNIT *u) counter++; } } - /* - - There are (SELECT_LEX*) pointer conversion here global union parameters - can't be used in multiupdate - - TODO: check is thd->lex.current_select == &thd->lex.select_lex? - */ - init_ftfuncs(thd, (SELECT_LEX*)thd->lex.current_select, 1); + init_ftfuncs(thd, thd->lex.current_select->select_lex(), 1); error = 0; // Timestamps do not need to be restored, so far ... DBUG_RETURN(0); } |