-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
alias_attribute causing "specified more than once" error upon import. #810
Comments
@leonidkroka any ideas how to resolve this issue? |
Just to add more context, this seems specific to JRuby and PostgreSQL. I've added JRuby 9.4/AR 7 and 9.3/AR6 6.1 to the CI tests and they are passing 🤔 |
@skunkworker what version of activerecord-jdbcpostgresql-adapter gem do you have installed? |
@jkowens |
@skunkworker I have jruby back in the CI, could you possibly create a PR with a failing test to demonstrate the issue? |
This is happening in our rails 6.1 app with mysql 8.0 as well, so I think this bug is not limited to any particular DB adapter. |
Related to #799 and #728
In my model I am aliasing an attribute, when I try to import a record from an existing record, the INSERT INTO sql string has the aliased column name twice instead of once.
Rails 6.1.7.6
activerecord-import v1.5.0
The ActiveRecord Schema cache is also being used.
Eg:
The text was updated successfully, but these errors were encountered: