smql 0.0.5.3 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/smql_to_ar/condition_types.rb +2 -0
- metadata +3 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
@@ -203,6 +203,7 @@ class SmqlToAR
|
|
203
203
|
end
|
204
204
|
InRange = simple_condition NotInRange, '..', '%s BETWEEN %s AND %s'
|
205
205
|
|
206
|
+
# Every key-pair will be ORed. No multiple values possible.
|
206
207
|
class Overlaps < Condition
|
207
208
|
Operator, Where = '<=>', '(%s, %s) OVERLAPS (%s, %s)'
|
208
209
|
Expected = [Range, lambda {|val|
|
@@ -228,6 +229,7 @@ class SmqlToAR
|
|
228
229
|
end
|
229
230
|
|
230
231
|
def overlaps_build builder, table
|
232
|
+
builder = Or.new builder
|
231
233
|
builder.wobs (v1 = builder.vid).to_sym => @value.begin, (v2 = builder.vid).to_sym => @value.end
|
232
234
|
v1 = "TIMESTAMP #{v1}"
|
233
235
|
v2 = "TIMESTAMP #{v2}"
|
metadata
CHANGED
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.0.5.3
|
8
|
+
- 6
|
9
|
+
version: 0.0.6
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Denis Knauf
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2012-
|
17
|
+
date: 2012-02-09 00:00:00 +01:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|