Я пытаюсь выполнить хранимую процедуру с помощью Liquibase с разделителем / в
.
sql файл База данных db2. Проблема в том, что это дает мне ошибку как DB2 SQL Error: SQLCODE = -104, SQLSTATE = 42601, SQLERRMC = END-OF-STATEMENT; demoTable = ((demovar;) не может понять причину, как и все другие хранимые процедуры в том же файл выполняется хорошо ..
используя следующий набор изменений
и demo.sql имеет хранимую процедуру и устанавливает в ней объявление демовара любое предположение, что является причиной
<changeSet author = "demouser" id = "demoid"> <sqlFile splitStatements = "true" endDelimiter = "/" relativeToChangelogFile = "true" encoding = "utf8" path = "./ demo.sql" /> </changeSet>
Каково точное содержимое файла demo.sql?





В вашем сообщении об ошибке говорится:
DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601
-104 представляет SQL0104N, и вот объяснение.
SQL0104N Неожиданный токен токена был обнаружен после текста. Ожидаемые токены могут включать: список токенов.
https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.5.0/com.ibm.db2.luw.messages.sql.doc/com.ibm.db2.luw.messages.sql.doc-gentopic1. html # sql0104n
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.
Таким образом, вам может потребоваться следовать разделу «Ответ пользователя» на странице и исправить Оператор SQL в demo.sql.
Надеюсь это поможет.
набор изменений выглядит следующим образом: