diff options
author | Eugene Kosov <claprix@yandex.ru> | 2017-11-28 15:03:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 15:03:25 +0300 |
commit | dcc00d2be37cba663da308cc774306b9d693ac2d (patch) | |
tree | ca0cb3104aed9a59290bfbfad561030c8b0a1d12 /storage/innobase/pars/pars0pars.cc | |
parent | f826f1249bd16c39c664fc51620b8df39fa76cc8 (diff) | |
download | mariadb-git-dcc00d2be37cba663da308cc774306b9d693ac2d.tar.gz |
IB: combine is_delete, vers_delete into enum [closes #337]
Diffstat (limited to 'storage/innobase/pars/pars0pars.cc')
-rw-r--r-- | storage/innobase/pars/pars0pars.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/innobase/pars/pars0pars.cc b/storage/innobase/pars/pars0pars.cc index d0696ab5cfc..11195287d8f 100644 --- a/storage/innobase/pars/pars0pars.cc +++ b/storage/innobase/pars/pars0pars.cc @@ -1085,7 +1085,7 @@ pars_update_statement_start( node = upd_node_create(pars_sym_tab_global->heap); - node->is_delete = is_delete; + node->is_delete = is_delete ? PLAIN_DELETE : NO_DELETE; node->table_sym = table_sym; node->col_assign_list = col_assign_list; @@ -1250,9 +1250,9 @@ pars_update_statement( node->select = sel_node; ut_a(!node->is_delete || (node->col_assign_list == NULL)); - ut_a(node->is_delete || (node->col_assign_list != NULL)); + ut_a(node->is_delete == PLAIN_DELETE || node->col_assign_list != NULL); - if (node->is_delete) { + if (node->is_delete == PLAIN_DELETE) { node->cmpl_info = 0; } else { pars_process_assign_list(node); |