Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Winkler2008-11-24 15:47:56 +0000
committerStefan Winkler2008-11-24 15:47:56 +0000
commita366f575189ee498695c113b0b03cd1a03bfdcbd (patch)
treef2b16bb139709344c7a4fe39ba20168a530e32fd /features
parent0409e06bec565f7d174f14d5f0f0981d2a816537 (diff)
downloadcdo-a366f575189ee498695c113b0b03cd1a03bfdcbd.tar.gz
cdo-a366f575189ee498695c113b0b03cd1a03bfdcbd.tar.xz
cdo-a366f575189ee498695c113b0b03cd1a03bfdcbd.zip
[255322] [DB] Possible leakage with prepared statements
https://bugs.eclipse.org/bugs/show_bug.cgi?id=255322
Diffstat (limited to 'features')
-rw-r--r--features/org.eclipse.emf.cdo.server.product-feature/rootfiles/configuration/cdo-server.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/features/org.eclipse.emf.cdo.server.product-feature/rootfiles/configuration/cdo-server.xml b/features/org.eclipse.emf.cdo.server.product-feature/rootfiles/configuration/cdo-server.xml
index 3412499455..04bb5728d1 100644
--- a/features/org.eclipse.emf.cdo.server.product-feature/rootfiles/configuration/cdo-server.xml
+++ b/features/org.eclipse.emf.cdo.server.product-feature/rootfiles/configuration/cdo-server.xml
@@ -21,7 +21,18 @@
<property name="toOneReferences" value="LIKE_ATTRIBUTES"/>
</mappingStrategy>
- <jdbcDelegate type="statement" />
+ <!-- Old setting <jdbcDelegate type="statement" />
+ is now replaced by preparedStatement: -->
+ <jdbcDelegate type="preparedStatement" >
+ <!-- to explicitly force prepared statement caching (e.g., if statement pooling is not supported
+ by the JDBC driver, use
+ <property name="cacheStatements" value="enabled" />
+ Else, the implicit default is:
+ <property name="cacheStatements" value="guess" />
+ Which guesses the correct setting based on the JDBC driver's metadata.
+ Also supported is the third setting "disabled".
+ -->
+ </jdbcDelegate>
<dbAdapter name="derby-embedded"/>
<dataSource class="org.apache.derby.jdbc.EmbeddedDataSource"
databaseName="/temp/cdodb1"

Back to the top