From d6c67b75c12a4c31079e22cfe91e4961902164c1 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 27 Jan 2007 17:51:08 +0000 Subject: [PATCH] Fix bug id 1646045 - Can't delete when no class model --- base/src/org/compiere/model/GridTable.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/GridTable.java b/base/src/org/compiere/model/GridTable.java index 4d7a9ff11c..098c10b455 100644 --- a/base/src/org/compiere/model/GridTable.java +++ b/base/src/org/compiere/model/GridTable.java @@ -2268,7 +2268,8 @@ public class GridTable extends AbstractTableModel int no = 0; try { - PreparedStatement pstmt = DB.prepareStatement(sql.toString(), null); + PreparedStatement pstmt = DB.prepareStatement (sql.toString(), + ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE, null); no = pstmt.executeUpdate(); pstmt.close(); }