Skip to content

Commit 6a8b65c

Browse files
committed
Use 'value' array instead for 'min' and 'max' for more consistency
1 parent 68add68 commit 6a8b65c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/grammar.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ grammar =
153153
]
154154

155155
BetweenExpression: [
156-
o 'Expression CONDITIONAL Expression', -> new BetweenOp($1, $3)
156+
o 'Expression CONDITIONAL Expression', -> new BetweenOp([$1, $3])
157157
]
158158

159159
SubSelectExpression: [

src/nodes.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ exports.UnaryOp = class UnaryOp
151151
toString: -> "(#{@operator.toUpperCase()} #{@operand})"
152152

153153
exports.BetweenOp = class BetweenOp
154-
constructor: (@min, @max) -> null
155-
toString: -> "#{@min} AND #{@max}"
154+
constructor: (@value) -> null
155+
toString: -> "#{@value.join(' AND ')}"
156156

157157
exports.Field = class Field
158158
constructor: (@field, @name=null) -> null

0 commit comments

Comments
 (0)