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

Fix for conc-77: Backslash escaped quotes (', "") are not parsed correctly

This commit is contained in:
Georg Richter
2014-02-10 09:04:01 +01:00
parent 4f63028905
commit 2ceb2f7ffc
3 changed files with 8 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ static int test_conc66(MYSQL *my)
fprintf(fp, "[conc-66]\n");
fprintf(fp, "user=conc66\n");
fprintf(fp, "password='test;#test'\n");
fprintf(fp, "password='test\\\";#test'\n");
fclose(fp);
@@ -47,7 +47,7 @@ static int test_conc66(MYSQL *my)
rc= mysql_options(mysql, MYSQL_READ_DEFAULT_FILE, "./my.cnf");
check_mysql_rc(rc, mysql);
rc= mysql_query(my, "GRANT ALL ON test.* TO 'conc66'@'localhost' IDENTIFIED BY 'test;#test'");
rc= mysql_query(my, "GRANT ALL ON test.* TO 'conc66'@'localhost' IDENTIFIED BY 'test\";#test'");
check_mysql_rc(rc, my);
rc= mysql_query(my, "FLUSH PRIVILEGES");
check_mysql_rc(rc, my);