diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-10-23 15:24:02 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-10-23 15:24:02 +0400 |
commit | e7637ec061a0046d116c135a15f3afbb77e1c4d5 (patch) | |
tree | d0b49be7e6a8bbf5cfc845cf4553a0abbca61be0 /sql/sp_rcontext.cc | |
parent | 1355fadb59693ba0ecbf544b9ff23083e610c8f7 (diff) | |
download | mariadb-git-e7637ec061a0046d116c135a15f3afbb77e1c4d5.tar.gz |
A cleanup for MDEV-12007 Allow ROW variables as a cursor FETCH target
Using "this" instead of "thd->sphead" in sp_rcontext::set_variable_row_field()
Diffstat (limited to 'sql/sp_rcontext.cc')
-rw-r--r-- | sql/sp_rcontext.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sp_rcontext.cc b/sql/sp_rcontext.cc index 96913f8619f..8a86d522e1e 100644 --- a/sql/sp_rcontext.cc +++ b/sql/sp_rcontext.cc @@ -691,13 +691,13 @@ int sp_rcontext::set_variable_row_field(THD *thd, uint var_idx, uint field_idx, int sp_rcontext::set_variable_row(THD *thd, uint var_idx, List<Item> &items) { DBUG_ENTER("sp_rcontext::set_variable_row"); - DBUG_ASSERT(thd->spcont->get_item(var_idx)->cols() == items.elements); + DBUG_ASSERT(get_item(var_idx)->cols() == items.elements); List_iterator<Item> it(items); Item *item; for (uint i= 0 ; (item= it++) ; i++) { int rc; - if ((rc= thd->spcont->set_variable_row_field(thd, var_idx, i, &item))) + if ((rc= set_variable_row_field(thd, var_idx, i, &item))) DBUG_RETURN(rc); } DBUG_RETURN(0); |