summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-03-03 07:20:15 +0400
committerAlexander Barkov <bar@mariadb.com>2019-03-03 07:20:15 +0400
commit47b7ca629f5e91465140375e3d40c49954c0566d (patch)
treef25a7271e8ca21946a4a6ce587fd743d43adb8b4 /sql/protocol.cc
parent3b47587f419f70687d840c522f4a80e7762b9183 (diff)
downloadmariadb-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.cc5
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)
{