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
Travis test fixes
Since 10.6 server returns utf8mb3 for character set (and it will change to utf8mb4), so we use strncmp to check the character set returned by server.
This commit is contained in:
@@ -310,7 +310,7 @@ static int use_utf8(MYSQL *my)
|
||||
|
||||
while ((row= mysql_fetch_row(res)) != NULL)
|
||||
{
|
||||
FAIL_IF(strcmp(row[0], "utf8"), "wrong character set");
|
||||
FAIL_IF(strncmp(row[0], "utf8", 4), "wrong character set");
|
||||
}
|
||||
FAIL_IF(mysql_errno(my), mysql_error(my));
|
||||
mysql_free_result(res);
|
||||
|
Reference in New Issue
Block a user