Db2 有关使用liquibase运行存储过程的错误

Db2 有关使用liquibase运行存储过程的错误,db2,liquibase,db2-luw,liquibase-hibernate,Db2,Liquibase,Db2 Luw,Liquibase Hibernate,我正在尝试使用liquibase执行存储过程,在 sql文件数据库是db2。问题是它给我的错误是DB2SQL错误:SQLCODE=-104,SQLSTATE=42601,SQLERRMC=END-OF-STATEMENT;Demomable=((demovar;)无法理解原因,因为同一文件中的所有其他存储过程都执行得很好 使用以下变更集 并且demo.sql具有存储过程并在其中设置demovar declare 任何关于原因的建议您的错误消息会显示: DB2 SQL Error: SQLCO

我正在尝试使用liquibase执行存储过程,在
sql文件数据库是db2。问题是它给我的错误是DB2SQL错误:SQLCODE=-104,SQLSTATE=42601,SQLERRMC=END-OF-STATEMENT;Demomable=((demovar;)无法理解原因,因为同一文件中的所有其他存储过程都执行得很好

使用以下变更集

并且demo.sql具有存储过程并在其中设置demovar declare
任何关于原因的建议

您的错误消息会显示:

DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601
-104代表SQL0104N,下面是说明

SQL0104N在以下文本中找到意外的令牌。预期的令牌可能包括:令牌列表。

因此,您可能需要按照页面的“用户响应”部分,更正demo.SQL中的SQL语句


希望这有帮助。

变更集如下::demo.sql文件的确切内容是什么?
Explanation

A syntax error in the SQL statement or the input command string for the SYSPROC.ADMIN_CMD procedure was detected at the specified token following the text text. The text field indicates the 20 characters of the SQL statement or the input command string for the SYSPROC.ADMIN_CMD procedure that preceded the token that is not valid.

As an aid, a partial list of valid tokens is provided in the SQLERRM field of the SQLCA as token-list. This list assumes the statement is correct to that point.

This message can be returned when text is passed to the command line processor (CLP) in command mode and the text contains special characters that are interpreted by the operating system shell, such as single or double quotes, which are not identified with an escape character.

The statement cannot be processed.