You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this lib with activerecord-import. But it seems like the MySQL adapter in this gem is not implement supports_on_duplicate_key_update? related methods. activerecod-import can't add ON DUPLICATE KEY UPDATE to the sql statement because of mysql adapter tells it the DB is not supported ON DUPLICATE KEY UPDATE. But I'm sure MySQL supports it, read this ->How to INSERT If Row Does Not Exist (UPSERT) in MySQL.
Actually, activerecord-import already implement it, I copy/paste it into arjdbc/mysql/adapter.rb and it's working. I'm wondering if I can create a PR to fix it?
The text was updated successfully, but these errors were encountered:
I'm using this lib with activerecord-import. But it seems like the MySQL adapter in this gem is not implement
supports_on_duplicate_key_update?
related methods.activerecod-import
can't addON DUPLICATE KEY UPDATE
to the sql statement because of mysql adapter tells it the DB is not supportedON DUPLICATE KEY UPDATE
. But I'm sure MySQL supports it, read this ->How to INSERT If Row Does Not Exist (UPSERT) in MySQL.Actually,
activerecord-import
already implement it, I copy/paste it into arjdbc/mysql/adapter.rb and it's working. I'm wondering if I can create a PR to fix it?The text was updated successfully, but these errors were encountered: