changeset 1837:318068396976

sql fix
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 17 Jan 2025 21:38:32 -0700
parents e4440c286af6
children ffca75e80799
files src/luan/modules/sql/Database.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r e4440c286af6 -r 318068396976 src/luan/modules/sql/Database.java
--- a/src/luan/modules/sql/Database.java	Fri Jan 17 21:12:20 2025 -0700
+++ b/src/luan/modules/sql/Database.java	Fri Jan 17 21:38:32 2025 -0700
@@ -77,7 +77,7 @@
 
 	public ResultSet query(String sql,Object... args) throws SQLException {
 		if( args.length == 0 ) {
-			Statement stmt = con.createStatement();
+			Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY,ResultSet.HOLD_CURSORS_OVER_COMMIT);
 			fix(stmt);
 			return stmt.executeQuery(sql);
 		} else {