summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-11-05 17:37:55 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2020-11-05 18:59:00 +0100
commit19a847d40c03213fd05693b1b43d974ce0bfe6bf (patch)
tree0fcc841b21fb87e7abe1ac7b642172bfc5e8f3c0 /tests
parent6d3792a9a2e30201ffbdc977e370e96825b24f3b (diff)
downloadmariadb-git-19a847d40c03213fd05693b1b43d974ce0bfe6bf.tar.gz
MDEV-19838: followup to make happy following protocol implementations:
- mysqlnd from PHP < 7.3 - mysql-connector-python any version - mysql-connector-java any version Relaxed check about garbage at the end of the packet in case of no parameters. Added check for array binding. Fixed test according to the new paradigm (allow junk at the end of the packet)
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 058168eedd5..93f23236dbc 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -20032,8 +20032,11 @@ static void test_mdev19838()
" VALUES "
"(0x1111111111111111)", -1);
- /* Expecting an error if parameters are sent */
- DIE_UNLESS(rc != 0 || paramCount == 0);
+ /*
+ We allow junk at the end of the packet in case of
+ no parameters. So it will succeed.
+ */
+ DIE_UNLESS(rc == 0);
}
mysql_stmt_close(stmt);