Commit 2cb2422 1 parent df7c7a4 commit 2cb2422 Copy full SHA for 2cb2422
File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ object Parser {
96
96
" insert" ~/ spaces ~
97
97
" into" ~ spaces ~ ident ~ spaces ~
98
98
// it would be nice to have column names be optional, but there is no
99
- // stable order of a dynamo schema. Some convetion could be introduced, but it
99
+ // stable order of a dynamo schema. Some convention could be introduced, but it
100
100
// might surprising. Optional feature?
101
101
" (" ~/ space.rep ~ commaSeparated(ident) ~ space.rep ~ " )" ~ spaces ~
102
102
" values" ~ spaces ~ " (" ~ space.rep ~ commaSeparated(value) ~ " )"
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class EvalSpec
43
43
client.shutdown()
44
44
}
45
45
46
- def run (query : String ) = eval.run(Parser (query).get.value ).get
46
+ def run (query : String ) = eval.run(Parser (query).right.get ).get
47
47
48
48
def runQuery (query : String ) = {
49
49
val ResultSet (result) = run(query)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Ast._
6
6
class ParserSpec extends FlatSpec with Matchers {
7
7
8
8
def validate (query : String , expected : Query ) = {
9
- val result = Parser (query).get.value
9
+ val result = Parser (query).right.get
10
10
expected should be(result)
11
11
}
12
12
You can’t perform that action at this time.
0 commit comments