active_record_upsert 0.9.2 → 0.9.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48b9c738ca1c46087a4bcc14ad389d945e0ce700b20a8585543c193c5a2555ed
|
4
|
+
data.tar.gz: 39b75431ad9dc73ade303206211c655ea354cdfbab8998ffb783bf5e00dab46c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d44e12c8506b54748db2a723c237f5eb7d558c59f62d9aaf3dea5e38ff3c8aa0709ed8475754c146372acfc3c1ccfa797f167483d314acb1cd2179e9d1e601fd
|
7
|
+
data.tar.gz: e7a045afae796b1c20bb1043f815636aee056960dc3de077374cc8029dcdcedf2c4441cdabf8b22efc1f927a451b163192820f7f741c54ab28dbb59cc9cc7036
|
data/lib/active_record_upsert/active_record/connection_adapters/postgresql/database_statements.rb
CHANGED
@@ -9,7 +9,7 @@ module ActiveRecordUpsert
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def exec_upsert(sql, name, binds)
|
12
|
-
exec_query("#{sql} RETURNING *, (xmax
|
12
|
+
exec_query("#{sql} RETURNING *, (xmax = 0) AS _upsert_created_record", name, binds)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_upsert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesper Josefsson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-09-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|