mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 05:54:21 +01:00
Fix isBeforeFirst to return false for empty ResultSet
This commit is contained in:
@@ -675,7 +675,8 @@ class JDBC4ResultSetTest {
|
||||
ResultSet resultSet = stmt.executeQuery("SELECT * FROM test_empty");
|
||||
|
||||
// Before calling next()
|
||||
assertTrue(resultSet.isBeforeFirst());
|
||||
// Empty ResultSet should return false for isBeforeFirst()
|
||||
assertFalse(resultSet.isBeforeFirst());
|
||||
assertFalse(resultSet.isAfterLast());
|
||||
|
||||
// After calling next() on empty ResultSet
|
||||
|
||||
Reference in New Issue
Block a user