deimos-ruby 1.14.3 → 1.14.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0876f9454cd35ecb35310f57f9539dbb6d952aa2c5ab5b0503725de4620d7a1e'
4
- data.tar.gz: 24fa6921f189d44aa36655338683992c1522ada69644c8570032df99e5d4ffc4
3
+ metadata.gz: 81c75c30750ad501a4d954681e7ea0c5ddef83c54e313a284d6abb0fde4c059a
4
+ data.tar.gz: 223a1cf8f77db5d0cb901a00c1a4a1eeb7eb2c9a243e8fa07a5deb32bcac849e
5
5
  SHA512:
6
- metadata.gz: b5f8824b1ba370408d1cc58c6a33ee72ad15118453274a0e65bce6f421a4228b92e654cd54eac8771063ced121e93633e95b9244d046e35869c65609e34f077f
7
- data.tar.gz: 0cfe69f0af3dfc463895fc1bbe16658efdb54a9afb45270cc4836235785e7137d7be36bab3a4b99503348cdfe118f63a39a18bc1dc718ec8411c4c80e57a2b98
6
+ metadata.gz: 95605e56b2852137a1645fa3497903d138045cdcf51902c4cad29321e78d0626f2ceb439789db46b69cb08f305f580efa804c768c9a781c0f96e677e4cf2f340
7
+ data.tar.gz: 4375d5c1bdde5b53598a1a11910615fda36d69e1dd92650becf710dd312425f07521fa70e0bebe4567e1d9931b5f70e71654f3dc0c74685141cb945193019672
data/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
+ # 1.14.4 - 2022-06-18
11
+
12
+ - Fix import in ActiveRecordConsumer on mysql
13
+
10
14
  # 1.14.3 - 2022-06-17
11
15
 
12
16
  - Fix issue with ActiveRecordConsumer double-decoding keys in batch mode.
@@ -100,12 +100,13 @@ module Deimos
100
100
 
101
101
  options = if key_cols.empty?
102
102
  {} # Can't upsert with no key, just do regular insert
103
+ elsif ActiveRecord::Base.connection.adapter_name.downcase =~ /mysql/
104
+ {
105
+ on_duplicate_key_update: :all
106
+ }
103
107
  else
104
108
  {
105
109
  on_duplicate_key_update: {
106
- # conflict_target must explicitly list the columns for
107
- # Postgres and SQLite. Not required for MySQL, but this
108
- # ensures consistent behaviour.
109
110
  conflict_target: key_cols,
110
111
  columns: :all
111
112
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.14.3'
4
+ VERSION = '1.14.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.3
4
+ version: 1.14.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner