diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-03-03 07:20:15 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-03-03 07:20:15 +0400 |
commit | 47b7ca629f5e91465140375e3d40c49954c0566d (patch) | |
tree | f25a7271e8ca21946a4a6ce587fd743d43adb8b4 /sql/protocol.cc | |
parent | 3b47587f419f70687d840c522f4a80e7762b9183 (diff) | |
download | mariadb-git-47b7ca629f5e91465140375e3d40c49954c0566d.tar.gz |
MDEV-18796 Synchronize PS grammar between sql_yacc.yy and sql_yacc_ora.yy
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index 1d5f77fb995..aec222a2410 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -1338,11 +1338,10 @@ bool Protocol_text::store_time(MYSQL_TIME *tm, int decimals) bool Protocol_text::send_out_parameters(List<Item_param> *sp_params) { - DBUG_ASSERT(sp_params->elements == - thd->lex->prepared_stmt_params.elements); + DBUG_ASSERT(sp_params->elements == thd->lex->prepared_stmt.param_count()); List_iterator_fast<Item_param> item_param_it(*sp_params); - List_iterator_fast<Item> param_it(thd->lex->prepared_stmt_params); + List_iterator_fast<Item> param_it(thd->lex->prepared_stmt.params()); while (true) { |