mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-03 15:24:22 +01:00
Nit
This commit is contained in:
@@ -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) };
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user