Skip to content

Commit c258f2a

Browse files
committed
fixes
1 parent 89e5e21 commit c258f2a

File tree

108 files changed

+132119
-15083
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+132119
-15083
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sqlparser [![Build Status](https://img.shields.io/travis/xwb1989/sqlparser.svg)](https://travis-ci.org/xwb1989/sqlparser) [![Coverage](https://img.shields.io/coveralls/xwb1989/sqlparser.svg)](https://coveralls.io/github/xwb1989/sqlparser) [![Report card](https://goreportcard.com/badge/github.com/xwb1989/sqlparser)](https://goreportcard.com/report/github.com/xwb1989/sqlparser) [![GoDoc](https://godoc.org/github.com/xwb1989/sqlparser?status.svg)](https://godoc.org/github.com/xwb1989/sqlparser)
1+
# sqlparser [![Build Status](https://img.shields.io/travis/smlxl/sqlparser.svg)](https://travis-ci.org/smlxl/sqlparser) [![Coverage](https://img.shields.io/coveralls/smlxl/sqlparser.svg)](https://coveralls.io/github/smlxl/sqlparser) [![Report card](https://goreportcard.com/badge/github.com/smlxl/sqlparser)](https://goreportcard.com/report/github.com/smlxl/sqlparser) [![GoDoc](https://godoc.org/github.com/smlxl/sqlparser?status.svg)](https://godoc.org/github.com/smlxl/sqlparser)
22

33
Go package for parsing MySQL SQL queries.
44

@@ -13,7 +13,7 @@ It applies the same LICENSE as vitessio/vitess.
1313

1414
```go
1515
import (
16-
"github.com/xwb1989/sqlparser"
16+
"github.com/smlxl/sqlparser"
1717
)
1818
```
1919

@@ -49,7 +49,7 @@ for {
4949
}
5050
```
5151

52-
See [parse_test.go](https://github.com/xwb1989/sqlparser/blob/master/parse_test.go) for more examples, or read the [godoc](https://godoc.org/github.com/xwb1989/sqlparser).
52+
See [parse_test.go](https://github.com/smlxl/sqlparser/blob/master/parse_test.go) for more examples, or read the [godoc](https://godoc.org/github.com/smlxl/sqlparser).
5353

5454

5555
## Porting Instructions
@@ -61,7 +61,7 @@ You only need the below if you plan to try and keep this library up to date with
6161
```bash
6262
shopt -s nullglob
6363
VITESS=${GOPATH?}/src/vitess.io/vitess/go/
64-
XWB1989=${GOPATH?}/src/github.com/xwb1989/sqlparser/
64+
XWB1989=${GOPATH?}/src/github.com/smlxl/sqlparser/
6565

6666
# Create patches for everything that changed
6767
LASTIMPORT=1b7879cb91f1dfe1a2dfa06fea96e951e3a7aec5
@@ -96,7 +96,7 @@ TODO: Change these instructions to use git to copy the files, that'll make later
9696

9797
```bash
9898
VITESS=${GOPATH?}/src/vitess.io/vitess/go/
99-
XWB1989=${GOPATH?}/src/github.com/xwb1989/sqlparser/
99+
XWB1989=${GOPATH?}/src/github.com/smlxl/sqlparser/
100100

101101
cd ${XWB1989?}
102102

@@ -112,8 +112,8 @@ rm dependency/sqltypes/arithmetic.go dependency/sqltypes/arithmetic_test.go depe
112112
# Some automated fixes
113113

114114
# Fix imports
115-
sed -i '.bak' 's_vitess.io/vitess/go/vt/proto/query_github.com/xwb1989/sqlparser/dependency/querypb_g' *.go dependency/sqltypes/*.go
116-
sed -i '.bak' 's_vitess.io/vitess/go/_github.com/xwb1989/sqlparser/dependency/_g' *.go dependency/sqltypes/*.go
115+
sed -i '.bak' 's_vitess.io/vitess/go/vt/proto/query_github.com/smlxl/sqlparser/dependency/querypb_g' *.go dependency/sqltypes/*.go
116+
sed -i '.bak' 's_vitess.io/vitess/go/_github.com/smlxl/sqlparser/dependency/_g' *.go dependency/sqltypes/*.go
117117

118118
# Copy the proto, but basically drop everything we don't want
119119
cp -pr ${VITESS?}/vt/proto/query dependency/querypb
@@ -135,7 +135,7 @@ sed -i '.bak' 's/vterrors.New([^,]*, /errors.New(/g' *.go dependency/sqltypes/*.
135135

136136
```bash
137137
VITESS=${GOPATH?}/src/vitess.io/vitess/go/
138-
XWB1989=${GOPATH?}/src/github.com/xwb1989/sqlparser/
138+
XWB1989=${GOPATH?}/src/github.com/smlxl/sqlparser/
139139

140140
cd ${XWB1989?}
141141

@@ -147,4 +147,4 @@ diff -u ${VITESS?}/sqltypes/ ${XWB1989?}/dependency/sqltypes/ > ${XWB1989
147147
diff -u ${VITESS?}/bytes2/ ${XWB1989?}/dependency/bytes2/ > ${XWB1989?}/patches/bytes2.patch
148148
diff -u ${VITESS?}/vt/proto/query/ ${XWB1989?}/dependency/querypb/ > ${XWB1989?}/patches/querypb.patch
149149
diff -u ${VITESS?}/vt/sqlparser/ ${XWB1989?}/ > ${XWB1989?}/patches/sqlparser.patch
150-
```
150+
```

0 commit comments

Comments
 (0)