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:
Fixed warning (int/size_t) Fixed error message
This commit is contained in:
@@ -881,7 +881,7 @@ static int test_get_options(MYSQL *unused __attribute__((unused)))
|
|||||||
const char *attr_val[] = {"bar1", "bar2", "bar3"};
|
const char *attr_val[] = {"bar1", "bar2", "bar3"};
|
||||||
char **key, **val;
|
char **key, **val;
|
||||||
|
|
||||||
for (i=0; i < sizeof(options_int)/sizeof(int); i++)
|
for (i=0; i < (int)(sizeof(options_int)/sizeof(int)); i++)
|
||||||
{
|
{
|
||||||
mysql_options(mysql, options_int[i], &intval[0]);
|
mysql_options(mysql, options_int[i], &intval[0]);
|
||||||
intval[1]= 0;
|
intval[1]= 0;
|
||||||
|
@@ -5001,9 +5001,11 @@ static int test_conc_fraction(MYSQL *mysql)
|
|||||||
|
|
||||||
expected= i > 6 ? 123456 : frac * (unsigned int)powl(10, (6 - i));
|
expected= i > 6 ? 123456 : frac * (unsigned int)powl(10, (6 - i));
|
||||||
|
|
||||||
diag("tm.second_part=%ld expected=%ld", tm.second_part, expected);
|
if (tm.second_part != expected)
|
||||||
FAIL_IF(tm.second_part != expected, "expected fractional part to be 900000");
|
{
|
||||||
|
diag("Error: tm.second_part=%ld expected=%ld", tm.second_part, expected);
|
||||||
|
return FAIL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mysql_stmt_close(stmt);
|
mysql_stmt_close(stmt);
|
||||||
return OK;
|
return OK;
|
||||||
|
Reference in New Issue
Block a user