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 fix: use my_ulonglong instead of ulong
Use 64-bit long instead of 32-bit value to avoid overflow
This commit is contained in:
@@ -5001,7 +5001,7 @@ static int test_conc_fraction(MYSQL *mysql)
|
||||
|
||||
for (i=0; i < 10; i++, frac=frac*10+i)
|
||||
{
|
||||
unsigned long expected= 0;
|
||||
my_ulonglong expected= 0;
|
||||
sprintf(query, "SELECT '2018-11-05 22:25:59.%ld'", frac);
|
||||
|
||||
diag("%d: %s", i, query);
|
||||
@@ -5033,7 +5033,7 @@ static int test_conc_fraction(MYSQL *mysql)
|
||||
|
||||
if (tm.second_part != expected)
|
||||
{
|
||||
diag("Error: tm.second_part=%ld expected=%ld", tm.second_part, expected);
|
||||
diag("Error: tm.second_part=%ld expected=%lld", tm.second_part, expected);
|
||||
mysql_stmt_close(stmt);
|
||||
return FAIL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user