aa86dbe09c
[parser] parser: add agg_to_cop hint ( #517 )
2021-10-09 14:53:23 +08:00
c7bb4e645c
[parser] change memory quota hint argument ( #513 )
2021-10-09 14:53:23 +08:00
68efdd0aee
[parser] parser: fix LOCK clause error message ( #516 )
2021-10-09 14:53:23 +08:00
a344829761
[parser] parser: fix VARCHARACTER, VARYING syntax ( #515 )
2021-10-09 14:53:23 +08:00
e1690e7912
[parser] parser: support query block in hint ( #491 )
2021-10-09 14:53:23 +08:00
e0db8ceee7
[parser] Support keyword SERIAL ( #481 )
...
* Support keyword `SERIAL`
* Fix fmt
* make fmt happy
* execute gofmt after `make parser`
* revert modification on Makefile
2021-10-09 14:53:23 +08:00
c933f5d710
[parser] add support for ALTER TABLE ... RENAME COLUMN syntax ( #504 )
2021-10-09 14:53:23 +08:00
34ef8f0215
[parser] parser: support secondary_load and secondary_unload ( #496 )
2021-10-09 14:53:23 +08:00
08f21e7705
[parser] parser: support ALTER TABLE ALTER CHECK, ALTER TABLE DROP CHECK syntax ( #505 )
2021-10-09 14:53:23 +08:00
a351d5b33e
[parser] parser: fix STATS_AUTO_RECALC syntax ( #483 )
2021-10-09 14:53:23 +08:00
fe948944f6
[parser] parser: support REORGANIZE PARTITION syntax ( #494 )
2021-10-09 14:53:23 +08:00
818dfcc40c
[parser] Support COLUMN_FORMAT syntax. ( #482 )
2021-10-09 14:53:23 +08:00
80f1430e35
[parser] parser: support SQL_TSI_* ( #495 )
2021-10-09 14:53:23 +08:00
345a4fb374
[parser] add support for ALTER TABLE ... RENAME syntax ( #489 )
2021-10-09 14:53:23 +08:00
ed49f69b7d
[parser] fix: add support for TABLE_CHECKSUM ( #488 )
2021-10-09 14:53:23 +08:00
c039c4773b
[parser] Support DROP INDEX ... [ALGORITHM | LOCK] syntax ( #484 )
2021-10-09 14:53:23 +08:00
c0a8f9ad24
[parser] Support ALTER TABLE REBUILD PARTITION syntax ( #469 )
2021-10-09 14:53:23 +08:00
bee432281a
[parser] parser: Fix CHECK PARTITION syntax ( #457 )
2021-10-09 14:53:23 +08:00
01b8be921f
[parser] add support for [TRUNCATE|DISCARD|IMPORT|OPTIMIZE|REPAIR] PARTITION ( #453 )
2021-10-09 14:53:23 +08:00
5f6a402230
[parser] parser: Support keyword FIELDS in ALTER TABLE PARTITION BY syntax ( #471 )
2021-10-09 14:53:23 +08:00
375404f929
[parser] add support for CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX ( #454 )
2021-10-09 14:53:23 +08:00
db0250c9fc
[parser] parser: fix LONG syntax ( #473 )
...
* parser: fix LONG syntax
* address comment
Co-Authored-By: leoppro <i@leop.pro >
* resolve conflicts
2021-10-09 14:53:23 +08:00
fadfe65c2e
[parser] parser: add several optimizer hints ( #424 )
2021-10-09 14:53:23 +08:00
90e7b8ecbb
[parser] parser.y: fix variable in set, 'set xx.xx = 42' is a valid statement ( #441 )
...
* parser.y: fix variable in set, 'set xx.xx = 42' is a valid statement
'xx.xx' is a valid variable name in the set statement
* address comment
2021-10-09 14:53:23 +08:00
f27d846e3d
[parser] add support for EXCHANGE PARTITION ( #449 )
2021-10-09 14:53:23 +08:00
985e762f47
[parser] support MATCH syntax ( #466 )
2021-10-09 14:53:23 +08:00
446d2e6e47
[parser] parser: fix CHARACTER VARYING syntax ( #465 )
2021-10-09 14:53:23 +08:00
ae67a02f61
[parser] parser: Fix NO_WRITE_TO_BINLOG option for ALTER TABLE Partition Operations syntax ( #456 )
2021-10-09 14:53:23 +08:00
85ab93c2d3
[parser] Add support for INSERT_METHOD ( #452 )
2021-10-09 14:53:23 +08:00
ac958b52cd
[parser] Fix CREATE DATABASE … ENCRYPTION syntax ( #450 )
2021-10-09 14:53:23 +08:00
82aae19c1a
[parser] parser: fix IF NOT EXISTS support for MariaDB ADD PARTITION syntax ( #455 )
...
* parser: fix support for MariaDB syntax
* ADD parser.go
2021-10-09 14:53:23 +08:00
a3182eb843
[parser] add support for PASSWORD EXPIRE ( #442 )
2021-10-09 14:53:23 +08:00
2d2990f3ad
[parser] make load data stmt traceable ( #447 )
2021-10-09 14:53:23 +08:00
6d183e6d75
[parser] parser: support analyze options for samples ( #440 )
2021-10-09 14:53:23 +08:00
bef56833c3
[parser] add support for CREATE TEMPORARY TABLE ( #438 )
2021-10-09 14:53:23 +08:00
ec0c81140b
[parser] parser: support cast as real ( #425 )
2021-10-09 14:53:23 +08:00
7c3199735d
[parser] add support for RTREE index ( #433 )
2021-10-09 14:53:23 +08:00
5fe457fc98
[parser] ast,parser: added several expression types to represent keyword arguments ( #142 )
...
* ast,parser: added several expression types to represent keyword arguments
Added TimeUnitExpr to represent time and timestamp units like SECOND in
DATE_ADD(time, INTERVAL x SECOND).
Added GetFormatSelectorExpr to represent the selectors like DATETIME in
GET_FORMAT(DATETIME, locale).
Added TrimDirectionExpr to represent the direction like BOTH in
TRIM(BOTH 'x' FROM 'xyz').
Changed FrameBound's Unit to use TimeUnitType directly.
Previously these were all converted into a string or integer ValueExpr,
which made Restore() implementation very ugly.
* ast: change type of PartitionMethod.Unit from ValueExpr to TimeUnitType
2021-10-09 14:53:23 +08:00
06b75c5eec
[parser] add support for SECONDARY_ENGINE ( #418 )
2021-10-09 14:53:23 +08:00
cb1061a56c
[parser] parser: fix WITH/WITHOUT VALIDATION syntax ( #427 )
2021-10-09 14:53:23 +08:00
a580fe29ee
[parser] parser: support cast as float ( #416 )
...
* parser: support_cast_as_float
* fix
2021-10-09 14:53:23 +08:00
481f4cb981
[parser] *: make 'grant all privileges' work right ( #400 )
2021-10-09 14:53:23 +08:00
57dfbab778
[parser] add support for STATS_SAMPLE_PAGES ( #414 )
2021-10-09 14:53:23 +08:00
bf7a1b4bf7
[parser] add support for STORAGE table option ( #407 )
...
* add support for STORAGE table option
* Apply suggestions from code review
Co-Authored-By: leoppro <i@leop.pro >
* add warning when parsing STORAGE
2021-10-09 14:53:23 +08:00
f100bfdd65
[parser] parser: support cast as double ( #399 )
2021-10-09 14:53:23 +08:00
5924cf2f8c
[parser] parser: fix remove partitioning syntax ( #396 )
...
* add support for REMOVE PARTITIONING syntax
* remove unused value
* add type for AlterTableSpec
* indent with tab
* indent with tab
2021-10-09 14:53:23 +08:00
f3a51e433b
[parser] parser: fix compatibility for OnDelete,OnUpdate clauses ( #393 )
...
* fix
* fix check for ColumnOption
* add test for match
* use array
2021-10-09 14:53:23 +08:00
9132b83cd8
[parser] parser: support more analyze options ( #388 )
2021-10-09 14:53:23 +08:00
f211af7b0f
[parser] parser: add TableOptimizerHint TIDB_HASHAGG and TIDB_STREAMAGG ( #394 )
2021-10-09 14:53:23 +08:00
63183ae869
[parser] parser: fix compatibility for LOCK ALGORITHM SET DEFAULT and CHECK clauses ( #392 )
2021-10-09 14:53:23 +08:00