mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user