ARTEMIS-2089 DB2 sending larger message (1MB) crashes the whole server

It declares JDBC journal Blobs for IBM DB2 DBMS matching max-blob-size
in order to allow to store data with size > 1 MB ie the default BLOB
capacity
This commit is contained in:
Francesco Nigro 2018-09-14 16:11:44 +02:00 committed by Martyn Taylor
parent 4cbc387782
commit ead9b00757
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ max-blob-size.oracle=4294967296
table-names-case.oracle=upper
# DB2 SQL statements
create-journal-table.db2=CREATE TABLE %s(id BIGINT,recordType SMALLINT,compactCount SMALLINT,txId BIGINT,userRecordType SMALLINT,variableSize INTEGER,record BLOB(2G),txDataSize INTEGER,txData BLOB(2G),txCheckNoRecords INTEGER,seq BIGINT NOT NULL, PRIMARY KEY(seq))
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=?