summaryrefslogtreecommitdiff
path: root/tests/mysql_client_test.c
diff options
context:
space:
mode:
authorRucha Deodhar <rucha.deodhar@mariadb.com>2021-09-29 14:18:40 +0530
committerRucha Deodhar <rucha.deodhar@mariadb.com>2021-09-29 14:28:14 +0530
commit28224147833e59f47491e05f247948a774b4c712 (patch)
treef94eb508bbc0a2a0422d5fc97855056938e3ac25 /tests/mysql_client_test.c
parent8dd4794c4e11b8790fadf0c203bcd118e7b755e8 (diff)
downloadmariadb-git-bb-10.7-MDEV-26611.tar.gz
MDEV-26611: ERROR_INDEX isn't intuitively clearbb-10.7-MDEV-26611
Fixup for MDEV-10075 Analysis: ERROR_INDEX implemented in MDEV-10075 was not intuitively clear. Fix: changed parser to use ROW_NUMBER instead of ERROR_INDEX. Removed ERROR_INDEX and ERROR_INDEX_SYM from related files. Changed m_error_index to m_row_number.
Diffstat (limited to 'tests/mysql_client_test.c')
-rw-r--r--tests/mysql_client_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 128215d01a7..dfcbcf344de 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -21580,7 +21580,7 @@ void test_mdev_10075()
mysql_stmt_close(stmt);
- rc= mysql_query(mysql, "GET DIAGNOSTICS CONDITION 1 @var1 = ERROR_INDEX");
+ rc= mysql_query(mysql, "GET DIAGNOSTICS CONDITION 1 @var1 = ROW_NUMBER");
myquery(rc);
rc= mysql_query(mysql, "SELECT @var1");