# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: C:\Progetti\NetBeansProjects\jackrabbit-trunk\jackrabbit-core\src\main\java\org\apache\jackrabbit\core\util\db # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: ConnectionFactory.java --- ConnectionFactory.java Base (BASE) +++ ConnectionFactory.java Locally Modified (Based On LOCAL) @@ -344,11 +344,9 @@ ds.setAccessToUnderlyingConnectionAllowed(true); ds.setPoolPreparedStatements(true); ds.setMaxOpenPreparedStatements(-1); // unlimited - try { + if (!url.contains("postgresql")) { // JCR-3445 At the moment the PostgreSQL driver doesn't implement this method... ds.setValidationQueryTimeout(3); - } catch (Exception e) { - log.info("Unable to set the validation query timeout on the datasource: " + e.getMessage()); } return ds; }