Skip to content

Commit 8e43139

Browse files
committed
Add profile for old DB2 version that doesn't support tenants
1 parent 009f6b1 commit 8e43139

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

ci/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ elif [ "$RDBMS" == "oracle_db23c" ]; then
5656
elif [ "$RDBMS" == "autonomous-transaction-processing-serverless" ] || [ "$RDBMS" == "base-database-service-19c" ] || [ "$RDBMS" == "base-database-service-21c" ] || [ "$RDBMS" == "base-database-service-23ai" ]; then
5757
echo "Managing OTP Database..."
5858
goal="-Pdb=oracle_test_pilot_database -DrunID=$RUNID -DdbPassword=$TESTPILOT_PASSWORD -DdbConnectionStringSuffix=$TESTPILOT_CONNECTION_STRING_SUFFIX"
59-
elif [ "$RDBMS" == "db2" ] || [ "$RDBMS" == "db2_11_5" ]; then
59+
elif [ "$RDBMS" == "db2" ]; then
6060
goal="-Pdb=db2_ci"
61+
elif [ "$RDBMS" == "db2_11_5" ]; then
62+
goal="-Pdb=db2_old_ci"
6163
elif [ "$RDBMS" == "mssql" ] || [ "$RDBMS" == "mssql_2017" ]; then
6264
goal="-Pdb=mssql_ci"
6365
# Exclude some Sybase tests on CI because they use `xmltable` function which has a memory leak on the DB version in CI

local-build-plugins/src/main/groovy/local.databases.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,16 @@ ext {
329329
// 'jdbc.datasource' : 'com.informix.jdbcx.IfxDataSource',
330330
'connection.init_sql' : ''
331331
],
332+
db2_old_ci : [
333+
'db.dialect' : 'org.hibernate.dialect.DB2Dialect',
334+
'jdbc.driver': 'com.ibm.db2.jcc.DB2Driver',
335+
'jdbc.user' : 'orm_test',
336+
'jdbc.pass' : 'orm_test',
337+
'jdbc.url' : 'jdbc:db2://' + dbHost + ':50000/orm_test',
338+
'jdbc.datasource' : 'com.ibm.db2.jcc.DB2Driver',
339+
// 'jdbc.datasource' : 'com.ibm.db2.jcc.DB2SimpleDataSource',
340+
'connection.init_sql' : ''
341+
],
332342
db2_ci : [
333343
'db.dialect' : 'org.hibernate.dialect.DB2Dialect',
334344
'jdbc.driver': 'com.ibm.db2.jcc.DB2Driver',

0 commit comments

Comments
 (0)