feat(java): implement getBigDecimal() in JDBC4ResultSet

This commit is contained in:
kimminseok
2025-10-07 14:10:58 +09:00
parent 2aa76709c2
commit 80d11b75b1
2 changed files with 12 additions and 1 deletions

View File

@@ -631,4 +631,15 @@ class JDBC4ResultSetTest {
assertTrue(resultSet.next());
assertNull(resultSet.getCharacterStream(1));
}
@Test
void test_getBigDecimal_with_columnLabel() throws Exception {
stmt.executeUpdate("CREATE TABLE test_bigdecimal (amount REAL);");
stmt.executeUpdate("INSERT INTO test_bigdecimal (amount) VALUES (12345.67);");
ResultSet resultSet = stmt.executeQuery("SELECT * FROM test_bigdecimal");
assertTrue(resultSet.next());
assertEquals(BigDecimal.valueOf(12345.67), resultSet.getBigDecimal("amount"));
}
}