Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mysql] db:create fails on AR 3.2 #702

Closed
kares opened this issue Jan 6, 2016 · 0 comments
Closed

[mysql] db:create fails on AR 3.2 #702

kares opened this issue Jan 6, 2016 · 0 comments

Comments

@kares
Copy link
Member

kares commented Jan 6, 2016

when there's a problem - not printing the original error :

NoMethodError: undefined method `error' for #<ActiveRecord::JDBCError:0x4c650063>
.../gems/activerecord-3.2.22/lib/active_record/railties/databases.rake:135:in `create_database'
.../gems/activerecord-jdbc-adapter-1.3.19/lib/arjdbc/tasks/databases3.rake:57:in `create_database'
.../gems/activerecord-3.2.22/lib/active_record/railties/databases.rake:62:in `(root)'
.../gems/activerecord-3.2.22/lib/active_record/railties/databases.rake:62:in `(root)'
.../bin/jruby_executable_hooks:15:in `(root)'

https://github.com/rails/rails/blob/3-2-stable/activerecord/lib/active_record/railties/databases.rake#L135

kares added a commit to kares/activerecord-jdbc-adapter that referenced this issue Mar 4, 2016
…:create works

... even when there's a failure under Rails < 4.0 (fixes jruby#702)
@kares kares closed this as completed in eb16ad9 Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant