File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
- module github.com/AfterShip /clickhouse-sql-parser
1
+ module github.com/highlight /clickhouse-sql-parser
2
2
3
3
go 1.18
4
4
Original file line number Diff line number Diff line change 7
7
"os"
8
8
"strings"
9
9
10
- clickhouse "github.com/AfterShip /clickhouse-sql-parser/parser"
10
+ clickhouse "github.com/highlight /clickhouse-sql-parser/parser"
11
11
)
12
12
13
13
const VERSION = "0.3.8"
Original file line number Diff line number Diff line change @@ -5208,8 +5208,11 @@ func (f *BetweenClause) End() Pos {
5208
5208
5209
5209
func (f *BetweenClause) String() string {
5210
5210
var builder strings.Builder
5211
- builder.WriteString(f.Expr.String())
5212
- builder.WriteString(" BETWEEN ")
5211
+ if f.Expr != nil {
5212
+ builder.WriteString(f.Expr.String())
5213
+ builder.WriteString(" ")
5214
+ }
5215
+ builder.WriteString("BETWEEN ")
5213
5216
builder.WriteString(f.Between.String())
5214
5217
builder.WriteString(" AND ")
5215
5218
builder.WriteString(f.And.String())
@@ -5266,7 +5269,7 @@ func (f *WindowFrameUnbounded) End() Pos {
5266
5269
}
5267
5270
5268
5271
func (f *WindowFrameUnbounded) String() string {
5269
- return f.Direction + " UNBOUNDED"
5272
+ return " UNBOUNDED " + f.Direction
5270
5273
}
5271
5274
5272
5275
func (f *WindowFrameUnbounded) Accept(visitor ASTVisitor) error {
You can’t perform that action at this time.
0 commit comments