Skip to content

Commit 92623b7

Browse files
authored
Merge pull request #32 from liquidata-inc/zachmu/unary-plus
Support for unary plus operator (no-op operator)
2 parents a207ac7 + 2c1d25c commit 92623b7

File tree

5 files changed

+170
-64
lines changed

5 files changed

+170
-64
lines changed

engine_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ var queries = []queryTest{
5757
"SELECT -i FROM mytable;",
5858
[]sql.Row{{int64(-1)}, {int64(-2)}, {int64(-3)}},
5959
},
60+
{
61+
"SELECT +i FROM mytable;",
62+
[]sql.Row{{int64(1)}, {int64(2)}, {int64(3)}},
63+
},
64+
{
65+
"SELECT + - i FROM mytable;",
66+
[]sql.Row{{int64(-1)}, {int64(-2)}, {int64(-3)}},
67+
},
6068
{
6169
"SELECT i FROM mytable where -i = -2;",
6270
[]sql.Row{{int64(2)}},

go.mod

100644100755
Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
module github.com/src-d/go-mysql-server
22

33
require (
4-
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
54
github.com/VividCortex/gohistogram v1.0.0 // indirect
65
github.com/go-kit/kit v0.8.0
7-
github.com/go-ole/go-ole v1.2.4 // indirect
86
github.com/go-sql-driver/mysql v1.4.1
9-
github.com/gogo/protobuf v1.2.1 // indirect
107
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
11-
github.com/golang/protobuf v1.3.0 // indirect
8+
github.com/google/btree v1.0.0 // indirect
9+
github.com/google/go-cmp v0.3.0 // indirect
1210
github.com/hashicorp/golang-lru v0.5.3
1311
github.com/mitchellh/hashstructure v1.0.0
1412
github.com/oliveagle/jsonpath v0.0.0-20180606110733-2e52cf6e6852
15-
github.com/opentracing/opentracing-go v1.0.2
16-
github.com/pilosa/pilosa v1.3.0
17-
github.com/sanity-io/litter v1.1.0
18-
github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4 // indirect
19-
github.com/sirupsen/logrus v1.3.0
13+
github.com/opentracing/opentracing-go v1.1.0
14+
github.com/pilosa/pilosa v1.4.0
15+
github.com/sanity-io/litter v1.2.0
16+
github.com/sirupsen/logrus v1.4.2
2017
github.com/spf13/cast v1.3.0
21-
github.com/src-d/go-oniguruma v1.0.0
22-
github.com/stretchr/testify v1.3.0
23-
go.etcd.io/bbolt v1.3.2
24-
google.golang.org/grpc v1.19.0 // indirect
18+
github.com/src-d/go-oniguruma v1.1.0
19+
github.com/stretchr/testify v1.4.0
20+
go.etcd.io/bbolt v1.3.3
21+
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3 // indirect
22+
golang.org/x/net v0.0.0-20191119073136-fc4aabc6c914 // indirect
23+
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135 // indirect
24+
google.golang.org/appengine v1.6.5 // indirect
25+
google.golang.org/grpc v1.25.1 // indirect
2526
gopkg.in/src-d/go-errors.v1 v1.0.0
2627
gopkg.in/yaml.v2 v2.2.2
28+
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc // indirect
2729
vitess.io/vitess v3.0.0-rc.3.0.20190602171040-12bfde34629c+incompatible
2830
)

0 commit comments

Comments
 (0)