We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.0
PostgreSQL 9.5 and 9.4
Linux
Using the following SQL
CREATE TABLE sometable1 ( id SERIAL PRIMARY KEY, somefield TEXT CHECK (somefield ~ E'.') ); CREATE OR REPLACE FUNCTION testfun1() RETURNS TEXT AS $$ BEGIN RETURN E'foo'; END; $$ LANGUAGE 'plpgsql';
fails with
Migration V1__Test.sql failed ----------------------------- SQL State : 42601 Error Code : 0 Message : ERROR: unterminated dollar-quoted string at or near "$$ BEGIN RETURN E'foo'" Position: 59 Location : src/main/resources/migrations/V1__Test.sql Line : 1
but
CREATE TABLE sometable1 ( id SERIAL PRIMARY KEY, somefield TEXT CHECK (somefield ~ E'.') ); CREATE TABLE sometable2 ( id SERIAL PRIMARY KEY, somefield TEXT CHECK (somefield ~ E'.') ); CREATE OR REPLACE FUNCTION testfun1() RETURNS TEXT AS $$ BEGIN RETURN E'foo'; END; $$ LANGUAGE 'plpgsql';
doesn't, and neither does a version without escaped (E'') strings or a version with just the function definition alone.
Applying the migration directly with psql works.
The text was updated successfully, but these errors were encountered:
abc1a34
Added notes for flyway/flyway#1238
64263ad
Thanks! Fixed.
Sorry, something went wrong.
No branches or pull requests
What version of Flyway are you using?
4.0
What database are you using (type & version)?
PostgreSQL 9.5 and 9.4
What operating system are you using?
Linux
What did you do?
Using the following SQL
fails with
but
doesn't, and neither does a version without escaped (E'') strings or a version with just the function definition alone.
Applying the migration directly with psql works.
The text was updated successfully, but these errors were encountered: