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
Fix miscellaneous typos
This commit is contained in:
@@ -143,7 +143,7 @@ do {\
|
||||
do {\
|
||||
if (!mariadb_connection(mysql))\
|
||||
{\
|
||||
diag("Skip test for non MariaDB server");\
|
||||
diag("Skip test for non-MariaDB server");\
|
||||
return OK;\
|
||||
}\
|
||||
} while(0)
|
||||
@@ -423,7 +423,7 @@ my_bool query_int_variable(MYSQL *con, const char *var_name, int *var_value)
|
||||
(const char *) var_name);
|
||||
|
||||
FAIL_IF(mysql_query(con, query_buffer), "Query failed");
|
||||
FAIL_UNLESS(rs= mysql_store_result(con), "Invaliid result set");
|
||||
FAIL_UNLESS(rs= mysql_store_result(con), "Invalid result set");
|
||||
FAIL_UNLESS(row= mysql_fetch_row(rs), "Nothing to fetch");
|
||||
|
||||
is_null= row[0] == NULL;
|
||||
|
@@ -4030,7 +4030,7 @@ static int test_rename(MYSQL *mysql)
|
||||
check_stmt_rc(rc, stmt);
|
||||
|
||||
rc= mysql_stmt_execute(stmt);
|
||||
FAIL_IF(!rc, "Errr expected");
|
||||
FAIL_IF(!rc, "Error expected");
|
||||
|
||||
rc= mysql_query(mysql, "rename table t2 to t1, t4 to t3");
|
||||
check_mysql_rc(rc, mysql);
|
||||
|
@@ -2343,7 +2343,7 @@ static int test_bug4030(MYSQL *mysql)
|
||||
rc= mysql_stmt_fetch(stmt);
|
||||
FAIL_UNLESS(rc == 0, "rc != 0");
|
||||
FAIL_UNLESS(memcmp(&time_canonical, &time_out, sizeof(time_out)) == 0, "time_canonical != time_out");
|
||||
FAIL_UNLESS(memcmp(&date_canonical, &date_out, sizeof(date_out)) == 0, "date_canoncical != date_out");
|
||||
FAIL_UNLESS(memcmp(&date_canonical, &date_out, sizeof(date_out)) == 0, "date_canonical != date_out");
|
||||
FAIL_UNLESS(memcmp(&datetime_canonical, &datetime_out, sizeof(datetime_out)) == 0, "datetime_canonical != datetime_out");
|
||||
mysql_stmt_close(stmt);
|
||||
return OK;
|
||||
@@ -4030,7 +4030,7 @@ static int test_conc154(MYSQL *mysql)
|
||||
|
||||
mysql_stmt_close(stmt);
|
||||
|
||||
/* 3rd: non empty result without free_result */
|
||||
/* 3rd: non-empty result without free_result */
|
||||
rc= mysql_query(mysql, "INSERT INTO t1 VALUES ('test_conc154')");
|
||||
check_mysql_rc(rc, mysql);
|
||||
|
||||
@@ -4052,7 +4052,7 @@ static int test_conc154(MYSQL *mysql)
|
||||
|
||||
mysql_stmt_close(stmt);
|
||||
|
||||
/* 4th non empty result set with free_result */
|
||||
/* 4th non-empty result set with free_result */
|
||||
stmt= mysql_stmt_init(mysql);
|
||||
rc= mysql_stmt_prepare(stmt, SL(stmtstr));
|
||||
check_stmt_rc(rc, stmt);
|
||||
@@ -5369,7 +5369,7 @@ static int test_conc525(MYSQL *mysql)
|
||||
fclose(fp);
|
||||
|
||||
/* Test: prepare and execute
|
||||
should fail due to non existing file */
|
||||
should fail due to non-existing file */
|
||||
stmt= mysql_stmt_init(mysql);
|
||||
|
||||
rc= mysql_stmt_prepare(stmt, SL("LOAD DATA LOCAL INFILE './test.notexist' INTO table t1"));
|
||||
@@ -5943,7 +5943,7 @@ static int test_conc762(MYSQL *mysql)
|
||||
|
||||
mysql_stmt_fetch(stmt);
|
||||
FAIL_IF(is_null[0]==0, "Expected NULL value");
|
||||
FAIL_IF(is_null[1]==1, "Expected non NULL value");
|
||||
FAIL_IF(is_null[1]==1, "Expected non-NULL value");
|
||||
FAIL_IF(length[0]!=0, "Expected length=0");
|
||||
FAIL_IF(length[1]!=3, "Expected length=3");
|
||||
|
||||
|
Reference in New Issue
Block a user