Add consumeAll method in LimboResultSet and let JDBC4Statement to use it

This commit is contained in:
김선우
2025-01-27 20:31:37 +09:00
parent 4dd2d1c64a
commit e48d7aa763
3 changed files with 17 additions and 7 deletions

View File

@@ -1,9 +1,11 @@
package org.github.tursodatabase.jdbc4;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Properties;
import org.github.tursodatabase.TestUtils;
@@ -79,6 +81,6 @@ class JDBC4ResultSetTest {
resultSet.close();
assertTrue(resultSet.isClosed());
resultSet.next();
assertThrows(SQLException.class, resultSet::next);
}
}