You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
I am using the JAVA API to do the migration.
What database are you using (type & version)?
SAP HANA Version SP 11
What operating system are you using?
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
I am trying to execute migration with following procedure
DO
BEGIN
DECLARE v_count INT;
CREATE TABLE TAB1 (I INTEGER);
FOR v_count IN 1..10 DO
INSERT INTO TAB1 VALUES (:v_count);
END FOR;
END;
What did you expect to see?
The script works successfully in SAP HANA when executed directly
What did you see instead?
SQL State : HY000
Error Code : 257
Message : SAP DBTech JDBC: [257] (at 26): sql syntax error: line 3 col 17 (at pos 26)
Location : db/migration/hana/V1__create.table.sql
Line : 1
Statement : DO
BEGIN
DECLARE v_count INT
The text was updated successfully, but these errors were encountered:
This above code only allows reading procedure, functions and triggers to be read as single statement.
Anonymous block started with DO statement also needs to be considered here to read the whole block as single statement as per the following syntax DO BEGIN ... END Statement
What version of Flyway are you using?
I am using 4.2 version of flyway.
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
I am using the JAVA API to do the migration.
What database are you using (type & version)?
SAP HANA Version SP 11
What operating system are you using?
What did you do?
(Please include the content causing the issue, any relevant configuration settings, and the command you ran)
I am trying to execute migration with following procedure
What did you expect to see?
The script works successfully in SAP HANA when executed directly
What did you see instead?
SQL State : HY000
Error Code : 257
Message : SAP DBTech JDBC: [257] (at 26): sql syntax error: line 3 col 17 (at pos 26)
Location : db/migration/hana/V1__create.table.sql
Line : 1
Statement : DO
BEGIN
DECLARE v_count INT
The text was updated successfully, but these errors were encountered: