Skip to content

Commit

Permalink
Merge pull request #76 from 3scale/bugfix-oracle-friendly-id
Browse files Browse the repository at this point in the history
[Bugfix] ActiveRecord::StatementInvalid: OCIError: ORA-04043: object SP_INVOICES_FRIENDLY_ID does not exist
  • Loading branch information
hallelujah committed Oct 2, 2018
2 parents 029cba3 + c7255e8 commit 859f04f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/system/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def drop
EXECUTE IMMEDIATE 'DROP PROCEDURE #{name}';
EXCEPTION
WHEN OTHERS THEN
IF SQLCODE != -4080 THEN
IF SQLCODE != -4043 THEN
RAISE;
END IF;
END;
Expand Down Expand Up @@ -290,6 +290,7 @@ def create
def create
super
connection.execute "GRANT create trigger TO #{username}"
connection.execute "GRANT create procedure TO #{username}"
end

protected
Expand Down

0 comments on commit 859f04f

Please sign in to comment.