vitess-sqlparser icon indicating copy to clipboard operation
vitess-sqlparser copied to clipboard

simply SQL Parser for Go ( powered by vitess and TiDB )

Results 16 vitess-sqlparser issues
Sort by recently updated
recently updated
newest added

Hi there, From the example we just print the parse out. How can I get - that is like type (create or alter etc, DDL type, ) table name, columns...

sql like "select 1 as 测试 from dual", got error: syntax error at position 14 near '�' how can i fix this,thank you。

The library isn't able to parse postgres query with `$` placeholders. ```go tree, err := sqlparser.Parse("INSERT INTO users (email, name) VALUES ($1, $2)") if err != nil { fmt.Println(err) //...

COM_QUERY: show databases panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0xde0b22] goroutine 26 [running]: github.com/blastrain/vitess-sqlparser/sqlparser.convertTiDBStmtToVitessShow(0xc0003280b0, 0x1, 0x1, 0xc0005a6100, 0x0, 0x0) /root/software/sqlaudit/vendor/github.com/blastrain/vitess-sqlparser/sqlparser/type_converter.go:92...

Hello, this is Seongwan K. Do you have any plan to support COLLATE column option and ON UPDATE constraint option in CREATE TABLE parsing?

Hi, I have some question. I want to collect and parse queries and make statistics by query pattern. Query patterns should be collected in this form. ```sql ## AS-IS select...

When I try to compile for `GOARCH=386`, I get the compile errors below. For now I'll just use `amd64` instead. Is it possible to also support `386`? ``` # github.com/blastrain/vitess-sqlparser/tidbparser/dependency/mysql...

e.g. select * from t123_terms inner join t123_abc ... inner join t123_xyz; how do i replace t123... with abc.t123_...? please help. thx

Just like the `List DB Object`"output [here](http://www.dpriver.com/pp/sqlformat.htm).

Seems to be supported upstream https://github.com/vitessio/vitess/pull/3323/files