You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Test fix for MaxScale:
Skip character set tests which set character set during handshake, since MaxScale sends utf8mb4 via session_track information in handshake OK packet. (https://jira.mariadb.org/browse/MXS-4898).
This commit is contained in:
@@ -47,6 +47,9 @@ int bug_8378(MYSQL *mysql) {
|
|||||||
MYSQL_RES *res;
|
MYSQL_RES *res;
|
||||||
MYSQL_ROW row;
|
MYSQL_ROW row;
|
||||||
|
|
||||||
|
/* MXS-4898: MaxScale sends utf8mb4 in handshake OK packet */
|
||||||
|
SKIP_MAXSCALE;
|
||||||
|
|
||||||
len= mysql_real_escape_string(mysql, out, TEST_BUG8378_IN, 4);
|
len= mysql_real_escape_string(mysql, out, TEST_BUG8378_IN, 4);
|
||||||
FAIL_IF(memcmp(out, TEST_BUG8378_OUT, len), "wrong result");
|
FAIL_IF(memcmp(out, TEST_BUG8378_OUT, len), "wrong result");
|
||||||
|
|
||||||
|
@@ -1222,6 +1222,9 @@ static int test_mdev13100(MYSQL *my __attribute__((unused)))
|
|||||||
int rc;
|
int rc;
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|
||||||
|
/* MXS-4898: MaxScale sends utf8mb4 in handshake OK packet */
|
||||||
|
SKIP_MAXSCALE;
|
||||||
|
|
||||||
if (!(fp= fopen("./mdev13100.cnf", "w")))
|
if (!(fp= fopen("./mdev13100.cnf", "w")))
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user