Fix bug id 1646045 - Can't delete when no class model

This commit is contained in:
Carlos Ruiz 2007-01-27 17:51:08 +00:00
parent becfda81fb
commit d6c67b75c1
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}