Releases: phpmyadmin/sql-parser
Releases · phpmyadmin/sql-parser
5.10.2
5.10.1
Fixed
- Fix parsing of ALTER TABLE … RENAME KEY (#580)
- Fix parsing table names that start with "e1" (#578)
- Improve handling of negative and overflowed offsets on TokensList (#582)
- Fix parsing of queries with 'AND' (#590)
- Fix C style comments with two asterisks (#597)
- Fix parsing of SRID in column definition (#595)
5.10.0
- Fix parsing of UPDATE ... SET (#577)
- Fix parsing of WITH PARSER (#563)
- Fix context files for MySQL and MariaDB (#572) (#576)
- Allow using
::class
keyword to load a context (#571) - Fix query flags for lower-case functions (#564)
- Improve context files by using constants (#570)
- Fix case when a condition is not parsed correctly (#560)
- Support parsing KILL statements (#556)
- Fix replace clause of select statement with FOR UPDATE (#555)
- Add support for ALTER FUNCTION and ALTER PROCEDURE statements (#553)
5.9.1
5.9.0
5.8.2
5.8.1
- Fix
:=
was not recognized as an operator just like=
(#306) - Fix
ALTER TABLE … MODIFY … ENUM('<reserved_keyword>')
is being wrongly parsed (#234) - Fix
ALTER TABLE … MODIFY … ENUM('<reserved_keyword>')
is being wrongly parsed (#478) - Fix MariaDB window function with alias gives bad linting errors (#283)
- Fix unrecognized keyword
COLLATE
inWHERE
clauses (#491) - Fix invalid hexadecimal prefix 0X (#508)
5.8.0
- Fix
ALTER EVENT RENAME TO
to use expression instead of var (#419) by @niconoe- - Fix incorrect order of operations to parse table/db called `` (#422) by @kamil-tekiela
- Fix ALTER EVENT statement with DEFINER=user modifier fails to be parsed (#418) by @niconoe-
- Fix
GROUP BY
modifierWITH ROLLUP
is treated as a syntax error and prevents export of SQL query results by @niconoe- - Fix
TokensList::getPrevious
was not able to reach very first token (#428) by @Tithugues - Fix
TransactionStatement::build()
"Call to a member function build() on null" when the transaction has no end by @williamdes - Fix MySQL-specific commands parsing (#226) by @niconoe-
- Fix
ALTER TABLE … RENAME COLUMN … TO …
is not understood by the parser/linter (#430) by @niconoe- - Fix
PARTITION
syntax errors (#377) by @niconoe- - Fix
ALTER USER
when used withIDENTIFIED WITH/VIA/BY
option (#431) by @Tithugues - Fix
COALESCE PARTITION
inALTER TABLE
, rather thanCOALESCE
(#323) by @Tithugues - Support
ALGORITHM
andLOCK
options inALTER TABLE
statements (#319) by @Tithugues - Fix way end of functions, procedures and triggers' bodies is identified (#438) by @Tithugues
- Fix
enclosed by
is not recognized by the parser whenfields
is in lower case (#236) by @williamdes - Support
KEY
onCreateDefinition
(#330) by @williamdes - Fix
CALL
statements parsing (#372) by @williamdes - Implement support for
LEFT JOIN
,JOIN
,INNER JOIN
onUpdateStatement
(#260) by @williamdes - Implement support for
TABLE
andREPLACE
statements onDESCRIBE
statements by @williamdes - Fix
DESCRIBE
to allow a schema.table syntax (#445) by @williamdes - Fix parsing insert queries with functions trims commas (#450) by @Tithugues
- phpdoc fixes by @kamil-tekiela
5.7.0
- Performance improvement to use less the
nextToken()
function (#397) by @iifawzi - Lexer - Solving ambiguity on function keywords (#385) by @iifawzi
- Implement
ALTER EVENT
(#404) by @iifawzi - Add
ALTER EVENT
keywords (#404) by @iifawzi - Drop PHP 7.1 support by @williamdes
- Fix the alter operation table options
RENAME INDEX x TO y
(#405) by @iifawzi - Fix
CreateStatement
function's options (#406) by @iifawzi - Fix a PHP notice on Linter using
ANALYZE
(#413) by @iifawzi
5.6.0
- Add missing return types annotations (746f48f) by @MauricioFauth
- Improve the WITH statements parser (#363) by @iifawzi
- Add support for passing
Context::SQL_MODE*
constants toContext::setMode
method by @MauricioFauth - Fix additional body tokens issue with
CREATE VIEW
statements (#371) by @iifawzi - Exclude from composer vendor bundle /tests and /phpunit.xml.dist (a201314) by @williamdes
- Support table structure with
COMPRESSED
columns (#351) by @iifawzi - Add
#[\AllowDynamicProperties]
onStatement
andExpression
classes for PHP 8.2 support (4ee76d9) by @williamdes - Support
ALTER
queries ofPARTITIONS
(#329) by @iifawzi - Fixed differentiating between
ANALYZE
andEXPLAIN
statements (#386) by @iifawzi - Added "NOT" to the select options (#374, #391) by @iifawzi
- Implement the
EXPLAIN
Parser (#389) by @iifawzi - Context: Updated contexts to contain
multipoint
andmultipolygon
data types (#393) by @iifawzi - Support more keywords on
Expression
component (#399) by @iifawzi - Fix PHP 8.3 failing tests (#400) by @iifawzi
- Add funding to GitHub and
composer.json
by @williamdes - Add search keywords in the
composer.json
(#401) by @imanghafoori1