I created the following ANT task which generates output to a sql file
<updateDatabase
outputfile="${db.output.file}"
changeLogFile="${db.master.file}"
driver="${db.driverName}"
url="${db.url}"
username="${db.username}"
password="${db.password}"
promptOnNonLocalDatabase=“false”
dropFirst=“false”
contexts="${db.type}"
classpathref=“liquibase-classpath”
defaultSchemaName="${db.schema}"/>
This is my properties configuration
db.driverName=com.ibm.db2.jcc.DB2Driver
db.url=jdbc:db2://192.168.56.10:50000/TEST
db.username=db2inst1
db.password=db2inst1
db.schema=db2inst1
db.type=db2
db.output.file=c:\output.sql
db.master.file = c:\master.sql
I run the ANT task and it produces the correct sql output. However, The integer values are being generated with single quotes around it.The insert statement below is what was generated. The ID field has quotes around the value.I ran the sql against my local db2 on linux and it worked fine. However, it does not work on db2 mainframe.
INSERT INTO table(id, lst_chg_ts, lst_lgn_id, msg_cod, msg_txt) VALUES (‘37’, ‘2011-09-08 15:00:00’, ‘ADMIN’, ‘1037’, Test’)/
Is there a way to get liquibase to strip out the quotes on int fields or could someone give me some direction on where to change the code to prevent this? Thanks
-
Learn
-
Resources
-
Free Tools
OSS Risk Scanner Database DevOps Risk AssessmentCheat Sheets
Snowflake + Liquibase Databricks + Liquibase -
eBooks
6 Liquibase Community Risks & How to Avoid Guide: SOC 2 Compliance at the Database Layer Guide: Quantify the Value of Liquibase Secure -
Comparison Guides
Liquibase vs. Flyway Liquibase vs. Bytebase Liquibase Community vs Liquibase Secure
-
- Quickstart
- Get Started
- Documentation
- University
-
Resources
- Connect
- Contribute
- Join
- Blog