This commit is contained in:
김선우 2025-01-27 20:35:11 +09:00
parent e48d7aa763
commit c18418bed0
3 changed files with 4 additions and 3 deletions

View file

@ -29,7 +29,6 @@ impl LimboStatement {
Box::into_raw(Box::new(self)) as jlong
}
#[allow(dead_code)]
pub fn drop(ptr: jlong) {
let _boxed = unsafe { Box::from_raw(ptr as *mut LimboStatement) };
}

View file

@ -1,5 +1,6 @@
package org.github.tursodatabase.core;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.github.tursodatabase.annotations.Nullable;
import org.slf4j.Logger;
@ -40,7 +41,8 @@ public class LimboResultSet {
}
/**
* Consumes all the rows in this result set until the {@link #next()} method returns `false`.
* Consumes all the rows in this {@link ResultSet} until the {@link #next()} method returns
* `false`.
*
* @throws SQLException if the result set is not open or if an error occurs while iterating.
*/

View file

@ -61,7 +61,7 @@ class JDBC4ResultSetTest {
}
@Test
void resultSet_close_test() throws Exception {
void close_resultSet_test() throws Exception {
stmt.executeUpdate("CREATE TABLE users (id INT PRIMARY KEY, username TEXT);");
stmt.executeUpdate("INSERT INTO users VALUES (2, 'seonwoo');");
stmt.executeQuery("SELECT * FROM users");