mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
Fix test that uses wrong data types
This commit is contained in:
parent
3649e8f67c
commit
7fe5ba84c7
1 changed files with 2 additions and 4 deletions
|
@ -178,7 +178,7 @@ class JDBC4ResultSetTest {
|
|||
|
||||
@Test
|
||||
void test_getShort() throws Exception {
|
||||
stmt.executeUpdate("CREATE TABLE test_short (short_col SMALLINT);");
|
||||
stmt.executeUpdate("CREATE TABLE test_short (short_col INTEGER);");
|
||||
stmt.executeUpdate("INSERT INTO test_short (short_col) VALUES (123);");
|
||||
stmt.executeUpdate("INSERT INTO test_short (short_col) VALUES (32767);"); // Max short value
|
||||
stmt.executeUpdate("INSERT INTO test_short (short_col) VALUES (-32768);"); // Min short value
|
||||
|
@ -243,8 +243,6 @@ class JDBC4ResultSetTest {
|
|||
@Test
|
||||
@Disabled("limbo has a bug which sees -9223372036854775808 as double")
|
||||
void test_getLong() throws Exception {
|
||||
Long l1 = Long.MIN_VALUE;
|
||||
Long l2 = Long.MAX_VALUE;
|
||||
stmt.executeUpdate("CREATE TABLE test_long (long_col BIGINT);");
|
||||
stmt.executeUpdate("INSERT INTO test_long (long_col) VALUES (1234567890);");
|
||||
stmt.executeUpdate(
|
||||
|
@ -318,7 +316,7 @@ class JDBC4ResultSetTest {
|
|||
|
||||
@Test
|
||||
void test_getDouble() throws Exception {
|
||||
stmt.executeUpdate("CREATE TABLE test_double (double_col DOUBLE);");
|
||||
stmt.executeUpdate("CREATE TABLE test_double (double_col REAL);");
|
||||
stmt.executeUpdate("INSERT INTO test_double (double_col) VALUES (1.234567);");
|
||||
stmt.executeUpdate(
|
||||
"INSERT INTO test_double (double_col) VALUES (1.7976931348623157E308);"); // Max double
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue