composite_primary_keys 11.0.0.beta3 → 11.0.0.beta4
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: a82bde494ba8ade055be42d3e57d7d6f4eb31aebe5417e5e7c92590963943cab
|
4
|
+
data.tar.gz: 28805dfbc66e70f35452d852a7f2a5f20248ec64a6798d844505c6a2aec7fc73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e67fdc2a3846cc17ed323ffcbdc3d4eb2c2da3c898436f667ac071a3f6f1abc25983f77dd68798055a6a9365556d36c8631798f9bfed71cafe1a6ab3156e001
|
7
|
+
data.tar.gz: facd88fcfacbc76cf14d0ca0c6f9c9ecce5d5ef39856f32eb40ed20d91e9e8b48bc40829bbcf2013c95249f689a0c32e189aba054cd580a2ec74b6075fc71908
|
data/History.rdoc
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
== 11.0.0.
|
1
|
+
== 11.0.0.beta4 (2018-01-08)
|
2
|
+
|
3
|
+
* Try again on Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
|
4
|
+
|
5
|
+
== 11.0.0.beta3 (2018-01-07)
|
2
6
|
|
3
7
|
* Fix typo in Readme.doc (Lopez Lucien)
|
4
8
|
* Fix Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
|
@@ -18,14 +18,14 @@ module CompositePrimaryKeys
|
|
18
18
|
column_alias = column_name
|
19
19
|
|
20
20
|
# CPK
|
21
|
-
if
|
21
|
+
# if operation == "count" && has_limit_or_offset?
|
22
|
+
# # Shortcut when limit is zero.
|
23
|
+
# return 0 if limit_value == 0
|
24
|
+
#
|
25
|
+
# query_builder = build_count_subquery(spawn, column_name, distinct)
|
26
|
+
if operation == "count"
|
22
27
|
relation = unscope(:order)
|
23
28
|
query_builder = build_count_subquery(relation, column_name, distinct)
|
24
|
-
elsif operation == "count" && has_limit_or_offset?
|
25
|
-
# Shortcut when limit is zero.
|
26
|
-
return 0 if limit_value == 0
|
27
|
-
|
28
|
-
query_builder = build_count_subquery(spawn, column_name, distinct)
|
29
29
|
else
|
30
30
|
# PostgreSQL doesn't like ORDER BY when there are no GROUP BY
|
31
31
|
relation = unscope(:order).distinct!(false)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: composite_primary_keys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.0.0.
|
4
|
+
version: 11.0.0.beta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Savage
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|