Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 425 by
dyo...@gmail.com: flyway shows success even though
creation of oracle procedure failed
http://code.google.com/p/flyway/issues/detail?id=425
Oracle stored procedure failed to be created but status for execution of my
DDL script shows success. Can you add this to your list of bugs to fix?
Thank you.
## Configuration,
* flyway commandline-2.0.3
* Oracle 11gR2 client
* Oracle 11gR1 database
## procedure I'm creating,
$ cat db_2__proc.sql
create or replace procedure update_test
begin
update test set id=1;
end;
/
$
## Running flyway,
$ flyway.sh -configFile=testdb.properties info
Flyway (Command-line Tool) v.2.0.3
+----------------+----------------------------+---------------------+---------+
| Version | Description | Installed on |
State |
+----------------+----------------------------+---------------------+---------+
| 0 | init | 2013-01-31 15:04:41 |
Success |
| 1 | table | 2013-01-31 15:06:08 |
Success |
| 2 | proc | |
Pending |
+----------------+----------------------------+---------------------+---------+
$ flyway.sh -configFile=testdb.properties migrate
Flyway (Command-line Tool) v.2.0.3
Current schema version: 1
WARNING: outOfOrder mode is active. Migration run may not be reproducible.
Migrating to version 2
Successfully applied 1 migration (execution time 00:00.135s).
$ flyway.sh -configFile=testdb.properties info
Flyway (Command-line Tool) v.2.0.3
+----------------+----------------------------+---------------------+---------+
| Version | Description | Installed on |
State |
+----------------+----------------------------+---------------------+---------+
| 0 | init | 2013-01-31 15:04:41 |
Success |
| 1 | table | 2013-01-31 15:06:08 |
Success |
| 2 | proc | 2013-01-31 15:06:50 |
Success |
+----------------+----------------------------+---------------------+---------+
## Object created is invalid,
SQL> desc update_test
ERROR:
ORA-24372: invalid object for describe
SQL>
## Running script in sqlplus to verify errors,
SQL> create or replace procedure update_test
2 begin
3 update test set id=1;
4 end;
5 /
Warning: Procedure created with compilation errors.
SQL> select status from user_objects where object_name='UPDATE_TEST';
STATUS
-------
INVALID