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

codespell fixes, removed MSDOS preprocessor macros

This commit is contained in:
Georg Richter
2020-11-26 09:07:17 +01:00
parent 79137a4ae1
commit 820faff627
16 changed files with 32 additions and 48 deletions

View File

@@ -391,7 +391,7 @@ static int test_bug31669(MYSQL *mysql)
memset(buff, 'a', sizeof(buff));
rc= mysql_change_user(mysql, buff, buff, buff);
FAIL_UNLESS(rc, "Error epected");
FAIL_UNLESS(rc, "Error expected");
rc = mysql_change_user(mysql, username, password, schema);
check_mysql_rc(rc, mysql);

View File

@@ -918,7 +918,7 @@ static int test_bug1664(MYSQL *mysql)
/*
Now we are sending other long data. It should not be
concatened to previous.
concatenated to previous.
*/
data= (char *)"SomeOtherData";
@@ -3053,7 +3053,7 @@ static int test_bug8330(MYSQL *mysql)
long lval[2]= {1,2};
stmt_text= "drop table if exists t1";
/* in case some previos test failed */
/* in case some previous test failed */
rc= mysql_real_query(mysql, SL(stmt_text));
check_mysql_rc(rc, mysql);
stmt_text= "create table t1 (a int, b int)";
@@ -4908,7 +4908,7 @@ static int test_conc334(MYSQL *mysql)
result= mysql_stmt_result_metadata(stmt);
if (!result)
{
diag("Coudn't retrieve result set");
diag("Couldn't retrieve result set");
mysql_stmt_close(stmt);
return FAIL;
}

View File

@@ -161,7 +161,7 @@ static int test_view_2where(MYSQL *mysql)
MYSQL_STMT *stmt;
int rc, i;
MYSQL_BIND my_bind[8];
char parms[8][100];
char params[8][100];
ulong length[8];
const char *query=
"select relid, report, handle, log_group, username, variant, type, "
@@ -208,9 +208,9 @@ static int test_view_2where(MYSQL *mysql)
check_mysql_rc(rc, mysql);
memset(my_bind, '\0', sizeof(MYSQL_BIND));
for (i=0; i < 8; i++) {
strcpy(parms[i], "1");
strcpy(params[i], "1");
my_bind[i].buffer_type = MYSQL_TYPE_VAR_STRING;
my_bind[i].buffer = (char *)&parms[i];
my_bind[i].buffer = (char *)&params[i];
my_bind[i].buffer_length = 1;
my_bind[i].is_null = 0;
length[i] = 1;
@@ -245,7 +245,7 @@ static int test_view_star(MYSQL *mysql)
MYSQL_STMT *stmt;
int rc, i;
MYSQL_BIND my_bind[8];
char parms[8][100];
char params[8][100];
ulong length[8];
const char *query= "SELECT * FROM vt1 WHERE a IN (?,?)";
@@ -259,9 +259,9 @@ static int test_view_star(MYSQL *mysql)
check_mysql_rc(rc, mysql);
memset(my_bind, '\0', sizeof(MYSQL_BIND));
for (i= 0; i < 2; i++) {
sprintf((char *)&parms[i], "%d", i);
sprintf((char *)&params[i], "%d", i);
my_bind[i].buffer_type = MYSQL_TYPE_VAR_STRING;
my_bind[i].buffer = (char *)&parms[i];
my_bind[i].buffer = (char *)&params[i];
my_bind[i].buffer_length = 100;
my_bind[i].is_null = 0;
my_bind[i].length = &length[i];