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
Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)
Windows 7
JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)
JDK 9.0.4
Library Dependencies
Postgres 9.3.6
Expected Behavior
I can use PLPGSQL in evolution script
Actual Behavior
Play throws:
We got the following error: Unterminated dollar quote started at position 60 in SQL CREATE OR REPLACE FUNCTION do_something() RETURNS trigger AS $$ BEGIN PERFORM some_action(OLD.my_id); RETURN OLD; END. Expected terminating $$ [ERROR:0, SQLSTATE:42601], while trying to run this SQL script:
CREATE OR REPLACE FUNCTION do_something() RETURNS trigger AS $$
BEGIN
PERFORM some_action(OLD.my_id);
RETURN OLD;
END;
$$ LANGUAGE plpgsql;
Play Version (2.5.x / etc)
2.6.11
API (Scala / Java / Neither / Both)
N/A
Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)
Windows 7
JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)
JDK 9.0.4
Library Dependencies
Postgres 9.3.6
Expected Behavior
I can use PLPGSQL in evolution script
Actual Behavior
Play throws:
Of course the query has valid structure and works fine in Postgres.
I also tried with and without escaping
;
as documentation saysThe text was updated successfully, but these errors were encountered: