Commit Graph

14 Commits

Author SHA1 Message Date
ca82007543 [parser] Revert "make prepared readonly (#1139)" (#1145)
This reverts commit 72e9144ea37c26c219dc36afeb6a2e7689f12f27.
2021-10-09 14:53:23 +08:00
4c87213312 [parser] make prepared readonly (#1139) 2021-10-09 14:53:23 +08:00
1b0af1dc96 [parser] parser: support except all, intersect all, parentheses for set operator (#960) 2021-10-09 14:53:23 +08:00
4a04e063a6 [parser] support select for update wait seconds grammar (#997) 2021-10-09 14:53:23 +08:00
8f8575ddf5 [parser] parser: support set operator EXCEPT and INTERSECT (#916) 2021-10-09 14:53:23 +08:00
xhe
2dbf28d553 [parser] fix: correct file permission (#918)
Commit 334dfef16055ffaf9c704b7ad25ce7540cb6ce38 changed several files into
executables. Commit f6e17887c998e7c7d460bfabb198ed5f53dd22a2 reverted the
permission of parser_test.go from 755 to 644, but missed all other
files. Later go.mod1/go.sum1 are removed. This commit fixed the
permission of remaining affected files.
2021-10-09 14:53:23 +08:00
2f1915d785 [parser] parser: set UnionStmt and ShowStmt as readonly (#755)
* add UnionStmt and ShowStmt as readonly

* fix UnionStmt
2021-10-09 14:53:23 +08:00
07751a60e2 [parser] parser: support index advisor (#667) 2021-10-09 14:53:23 +08:00
9d0dae0e58 [parser] parser: add nowait keyword, add for update no wait grammar, and related error… (#582) 2021-10-09 14:53:23 +08:00
f3c3ddbf98 [parser] utils: IsReadOnly returns wrong result when checking SQLs like explain analyze insert ... (#381)
* update IsReadOnly

* add UT

* fixup
2021-10-09 14:53:23 +08:00
779495f792 [parser] parser: change the location of RestoreCtx (#157) 2021-10-09 14:53:23 +08:00
731e0c6ed6 [parser] parser: implement Restore for TableSource and Join (#111) 2021-10-09 14:53:23 +08:00
3d7841959f [parser] parser: add RestoreCtx and change the Node interface (#78) 2021-10-09 14:53:23 +08:00
8a205ccc0a [parser] *: support AST to SQL text (#56)
* ast2sql demo

* add SQLSentence

* mock func Restore

* change copyright

* add comment

* add test

* change tidb dependentment

* fix error comment

* use strings.Builder

* fix test

* add error return value for Recoverable

* add error return value for Recoverable

* add error return value for Recoverable

* impl Restore of UnaryOperationExpr

* integrate utils

* switch tidb dependency

* add comment

* add comment

* update unit test

* fix Restore of DatabaseOption

* fix Restore of DatabaseOption

* fix Restore of DatabaseOption

* update unit test

* use errorf
2021-10-09 14:53:23 +08:00