Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
571 views
in Technique[技术] by (71.8m points)

oracle19c - Liquibase Failed SQL: (933) error while inserting data in Oracle

I am new to Liquibase and I am currently trying to migrate our existing Sql scripts to Liquibase sql changesheet.

While trying to execute the following insert statement via Liquibase:

-- liquibase formatted sql

-- changeset authentic:DATA-CORE-NEW-1 splitStatements:false
INSERT INTO TABLE_A (COL_1,COL_2,COL_3,COL_4,COL_5,COL_6) VALUES (789,67,1,'Backslash','',CURRENT_TIMESTAMP);
--rollback DELETE FROM TABLE_A

I am getting the following errors:

Unexpected error running Liquibase: Migration failed for change set 
install/DATA/CORE/new_DATA.sql::DATA-CORE-NEW-1::axx2323:
    Reason: liquibase.exception.DatabaseException: ORA-00933: SQL command not properly ended
    [Failed SQL: (933) INSERT INTO TABLE_A (COL_1,COL_2,COL_3,COL_4,COL_5,COL_6) VALUES (789,67,1,'Backslash','',CURRENT_TIMESTAMP);]
For more information, please use the --logLevel flag

I am suspecting that the issue is with the '' (backslash) character. I tried changing the '' to '\' but it didn't worked and I am getting the same error.

My Liquibase version is : version 4.2.2 #36

Note: I don't want to change the format of the changesheet as I have too many of them and changing the format will take too much time.

Can anyone please help me in resolving this issue.

question from:https://stackoverflow.com/questions/65913684/liquibase-failed-sql-933-error-while-inserting-data-in-oracle

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...