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 fixes when testing against MySQL
This commit is contained in:
@@ -1208,6 +1208,7 @@ static int test_auth256(MYSQL *my)
|
|||||||
if (!my_test_connect(mysql, hostname, "sha256user", "foo", NULL, port, socketname, 0))
|
if (!my_test_connect(mysql, hostname, "sha256user", "foo", NULL, port, socketname, 0))
|
||||||
{
|
{
|
||||||
diag("error: %s", mysql_error(mysql));
|
diag("error: %s", mysql_error(mysql));
|
||||||
|
diag("host: %s", this_host);
|
||||||
mysql_close(mysql);
|
mysql_close(mysql);
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
@@ -1940,7 +1941,9 @@ static int test_conc632(MYSQL *my __attribute__((unused)))
|
|||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc= mysql_query(mysql, "CREATE OR REPLACE PROCEDURE conc632() "
|
rc= mysql_query(mysql, "DROP PROCEDURE conc632");
|
||||||
|
|
||||||
|
rc= mysql_query(mysql, "CREATE PROCEDURE conc632() "
|
||||||
"BEGIN "
|
"BEGIN "
|
||||||
" SELECT 1;"
|
" SELECT 1;"
|
||||||
" SELECT 2;"
|
" SELECT 2;"
|
||||||
|
@@ -5489,9 +5489,13 @@ static int test_mdev19838(MYSQL *mysql)
|
|||||||
|
|
||||||
static int test_conc627(MYSQL *mysql)
|
static int test_conc627(MYSQL *mysql)
|
||||||
{
|
{
|
||||||
MYSQL_STMT *stmt= mysql_stmt_init(mysql);
|
MYSQL_STMT *stmt;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
SKIP_MYSQL(mysql);
|
||||||
|
|
||||||
|
stmt= mysql_stmt_init(mysql);
|
||||||
|
|
||||||
rc= mysql_stmt_prepare(stmt, SL("show grants for mysqltest_8"));
|
rc= mysql_stmt_prepare(stmt, SL("show grants for mysqltest_8"));
|
||||||
check_stmt_rc(rc, stmt);
|
check_stmt_rc(rc, stmt);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user