occams-record 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/occams-record/eager_loaders/ad_hoc_base.rb +1 -1
- data/lib/occams-record/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17cf679ea22799905211308f46abe032a68d324c989201d95438b48ebc2db087
|
4
|
+
data.tar.gz: 48e855671bb8bc91ca71f84ca7a57577a3158939d9f59580ac1f232f2e2a1a60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f255fd1654005dda74a9f147656545dedddbf4ac9b648ed51067a6a8ec0d73fb01d278da6e9131f84bed191b580a6e6e7bfd4eabd6f30f536320292772b4d295
|
7
|
+
data.tar.gz: ff8917b649ed29abe473030681f4f8bbfe0a48570fee15b51e4dc5d0bb7b786203c3980f5f141a4c777ad9980190f09b3615e064d4b6881b95742fcc5c2c09a8
|
@@ -37,7 +37,7 @@ module OccamsRecord
|
|
37
37
|
#
|
38
38
|
def run(rows, query_logger: nil, measurements: nil)
|
39
39
|
fkey_binds = calc_fkey_binds rows
|
40
|
-
assoc = if fkey_binds.
|
40
|
+
assoc = if fkey_binds.all? { |_, vals| vals.any? }
|
41
41
|
binds = @binds.merge(fkey_binds)
|
42
42
|
RawQuery.new(@sql, binds, use: @use, eager_loaders: @eager_loaders, query_logger: query_logger, measurements: measurements).run
|
43
43
|
else
|