You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gi...@apache.org on 2022/05/25 16:46:22 UTC
[logging-log4j2] 02/02: Switch to PostgreSQL compatibility mode
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 803c3e2384ecdff011ad13d500967956061a8a23
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Wed May 25 18:08:10 2022 +0200
Switch to PostgreSQL compatibility mode
Due to eclipse-ee4j/eclipselink#1393 the version 2.x H2 database does
not work with EclipseLink. Temporarily we need to run H2 to emulate
another database (I chose PostgreSQL).
---
log4j-jpa/src/test/resources/META-INF/persistence.xml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/log4j-jpa/src/test/resources/META-INF/persistence.xml b/log4j-jpa/src/test/resources/META-INF/persistence.xml
index 6d8adc2721..4cd95e89f9 100644
--- a/log4j-jpa/src/test/resources/META-INF/persistence.xml
+++ b/log4j-jpa/src/test/resources/META-INF/persistence.xml
@@ -63,9 +63,14 @@
<shared-cache-mode>NONE</shared-cache-mode>
<properties>
<property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
- <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:Log4j"/>
+ <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:Log4j;MODE=PostgreSQL"/>
<property name="javax.persistence.jdbc.user" value="sa"/>
<property name="javax.persistence.jdbc.password" value="123"/>
+ <!--
+ Until the issue in https://github.com/eclipse-ee4j/eclipselink/issues/1393
+ we run in PostgreSQL compatibility mode.
+ -->
+ <property name="eclipselink.target-database" value="PostgreSQL"/>
<!--<property name="eclipselink.logging.level" value="FINE"/>
<property name="eclipselink.logging.level.sql" value="FINE"/>
<property name="eclipselink.logging.parameters" value="true"/> uncomment to troubleshoot SQL-->