Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

incorrect drop table statement generated for activerecord-oracle_enhanced-adapter #10

Open
dchelimsky opened this issue Aug 23, 2011 · 0 comments

Comments

@dchelimsky
Copy link

Error dropping table test_records: OCIError: ORA-00905: missing keyword: DROP TABLE "TEST_RECORDS" CASCADE

The statement should read "DROP TABLE "TEST_RECORDS" CASCADE CONSTRAINTS"

I took a look at patching this by adding the drop_table_with_cascade method to RailsSqlViews::ConnectionAdapters::OracleEnhanced, but for some reason unbeknownst to me the drop_table_with_cascade method in RailsSqlViews::ConnectionAdapters::SchemaStatements was called (even though the RailsSqlViews::ConnectionAdapters::OracleEnhanced module gets included later).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant