Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAP HANA: CREATE OR REPLACE not working #2222

ArunNeo opened this issue Nov 29, 2018 · 1 comment

SAP HANA: CREATE OR REPLACE not working #2222

ArunNeo opened this issue Nov 29, 2018 · 1 comment


Copy link

ArunNeo commented Nov 29, 2018

Which version and edition of Flyway are you using?


If this is not the latest version, can you reproduce the issue with the latest one as well?

(Many bugs are fixed in newer releases and upgrading will often resolve the issue)

yes tried newer version, still same issue

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)


Which database are you using (type & version)?

SAP hana

Which operating system are you using?

MAC osx

What did you do?

(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)

create or replace procedure proc(out o table(a int))
default schema system reads sql data deterministic with encryption as
    o = select 1 as a from dummy;

issue might be similar to this issue #1723

CREATE or REPLACE gives a Syntax error only in Flyway migration. works fine in SAP hana directly.

What did you expect to see?

Create or replace a procedure

What did you see instead?

Syntax error

SQL State : HY000
Error Code : 257
Message : SAP DBTech JDBC: [257] (at 296): sql syntax error: line 6 col 28 (at pos 296)

@axelfontaine axelfontaine added this to the Flyway 5.2.4 milestone Nov 29, 2018
@axelfontaine axelfontaine changed the title CREATE OR REPLACE not working in SAP hana SAP HANA: CREATE OR REPLACE not working Nov 30, 2018
axelfontaine pushed a commit to flyway/ that referenced this issue Nov 30, 2018
Copy link

Thanks for reporting. Fixed.

dohrayme pushed a commit to dohrayme/flyway that referenced this issue Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants