From 79ff3432d599ec4cd10f6613bdb2beb428aac960 Mon Sep 17 00:00:00 2001 From: Francesco Nigro Date: Thu, 12 Jul 2018 14:48:39 +0200 Subject: [PATCH] ARTEMIS-1979 Table names with DB2 should be upper-cases DB2 JDBC driver fail to retrieve metadata information if table names are lower-cases: similarly to Oracle, better force any table name to be upper-cases to avoid broker being unable to restart when lower-cases table names are used --- artemis-jdbc-store/src/main/resources/journal-sql.properties | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artemis-jdbc-store/src/main/resources/journal-sql.properties b/artemis-jdbc-store/src/main/resources/journal-sql.properties index 86e6a3d710..3d76d5dd18 100644 --- a/artemis-jdbc-store/src/main/resources/journal-sql.properties +++ b/artemis-jdbc-store/src/main/resources/journal-sql.properties @@ -88,4 +88,5 @@ table-names-case.oracle=upper # DB2 SQL statements max-blob-size.db2=2147483647 create-file-table.db2=CREATE TABLE %s (ID BIGINT GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1), FILENAME VARCHAR(255), EXTENSION VARCHAR(10), DATA BLOB(2G), PRIMARY KEY(ID)) -append-to-file.db2=UPDATE %s SET DATA = (DATA || ?) WHERE ID=? \ No newline at end of file +append-to-file.db2=UPDATE %s SET DATA = (DATA || ?) WHERE ID=? +table-names-case.db2=upper \ No newline at end of file