Closed Yiao closed 5 years ago
First of all flyway-test is only a wrapper of Flyway and call Flyway function in a specific test phase. If it works in Flyway it should also work in flyway-test,
I have only expirience with placeholder usage as descibed at https://flywaydb.org/documentation/database/oracle. First part of the description plain SQL part.
I have never tried PLSQL specific part.
I think than you need Flyway Pro
or Flyway Enterprise
, but I have never used it.
What should your test feature do in the database? Insert a "test name" in a specific table?
First of all, thank you very much for your response. I insert some default values in my table, I just try to test if I can get them with a findAll()
For this use case exist more than one solution and you need not really PLSQL:
locations
. Take a look in the examples.my recommendation for question will be https://stackoverflow.com/
Yeh, I will ask it in StackOverflow, thanks a lot ;)
version and edition of Flyway: 5.2.4 version and edition of Flyway test: 5.2.4 Database (type & version): Oracle DB 12.1.0.2.0 PL/SQL 12.1.0.2
I want to use variable constant plsql to replace some texts in flyway but I got syntaxe error
DECLARE myname_test CONSTANT VARCHAR2(10) := 'SOME TEXT'; BEGIN INSERT INTO MYTABLE(ID,NAME) VALUES (1,myname_test); END;
I got error : SQL State : 42000 Error Code : 42000 Message : Erreur de syntaxe dans linstruction SQL {0} Syntax error in SQL statement {0}; SQL statement: