summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Winkler2009-07-12 12:50:36 (EDT)
committerStefan Winkler2009-07-12 12:50:36 (EDT)
commit88296b4e188dd9b5c311090f47690873c76b4a0a (patch)
tree2709d9088d7d3adaf139772284a9e01b16c2cb32
parentc416c0cf003f376c541cb8f257766b1a7ebd8281 (diff)
downloadcdo-88296b4e188dd9b5c311090f47690873c76b4a0a.zip
cdo-88296b4e188dd9b5c311090f47690873c76b4a0a.tar.gz
cdo-88296b4e188dd9b5c311090f47690873c76b4a0a.tar.bz2
[282971] [DB] SQL Exception: The 'absolute()' method is only allowed on scroll cursors.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=282971
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/SQLQueryHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/SQLQueryHandler.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/SQLQueryHandler.java
index ea14f7a..d8f7d0b 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/SQLQueryHandler.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/SQLQueryHandler.java
@@ -99,7 +99,7 @@ public class SQLQueryHandler implements IQueryHandler
HashMap<String, List<Integer>> paramMap = new HashMap<String, List<Integer>>();
query = parse(query, paramMap);
- statement = connection.prepareStatement(query);
+ statement = connection.prepareStatement(query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
for (String key : info.getParameters().keySet())
{