1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fixed bug in character set autodetection

Fixed compiler warnings in test suite
Skipped change_users tests: They don't work anymore (mysql_change_user) security fix
Applied patch from John Schember
This commit is contained in:
Georg Richter
2013-03-13 11:00:56 +01:00
parent 420907a65a
commit d1b93bd17e
5 changed files with 18 additions and 9 deletions

View File

@@ -167,6 +167,8 @@ static int test_change_user(MYSQL *mysql)
const char *db= "mysqltest_user_test_database";
int rc;
diag("Due to mysql_change_user security fix this test will not work anymore.");
return(SKIP);
DBUG_ENTER("test_change_user");
/* Prepare environment */
@@ -321,6 +323,9 @@ static int test_bug31669(MYSQL *mysql)
static char db[NAME_CHAR_LEN+1];
static char query[LARGE_BUFFER_SIZE*2];
diag("Due to mysql_change_user security fix this test will not work anymore.");
return(SKIP);
rc= mysql_change_user(mysql, NULL, NULL, NULL);
FAIL_UNLESS(rc, "Error expected");