Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/MappingStrategy.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/MappingStrategy.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/MappingStrategy.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/MappingStrategy.java
index fe5e0d6585..8e1abf6ade 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/MappingStrategy.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/MappingStrategy.java
@@ -282,7 +282,8 @@ public abstract class MappingStrategy extends Lifecycle implements IMappingStrat
try
{
- return accessor.getJDBCDelegate().getStatement().executeQuery(sql);
+ // TODO - close statement
+ return accessor.getConnection().createStatement().executeQuery(sql);
}
catch (SQLException ex)
{
@@ -323,7 +324,8 @@ public abstract class MappingStrategy extends Lifecycle implements IMappingStrat
try
{
- resultSet = accessor.getJDBCDelegate().getStatement().executeQuery(sql);
+ // TODO - close statement
+ resultSet = accessor.getConnection().createStatement().executeQuery(sql);
while (resultSet.next())
{
long longID = resultSet.getLong(1);

Back to the top