Good Day!
PostgreSQL using flyway not able to create variable but using PostgreSQL client or command line its working well.
Below code is working well in client application [like DBeaver]
@set TEST = 'testing by us';
but when I add sql in flyway file its give error
@set TEST = 'testing by us';
SQL State : 42601 Error Code : 0 Message : ERROR: syntax error at or near "@" Position: 1 Location : db/migration/pgsql/_env/V1__zopn_obsolete.sql (C:\workspace\zara-flyway\target\classes\db\migration\pgsql_env\V1__zopn_obsolete.sql) Line : 1 Statement : @set TEST = 'testing by us'
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near "@"