Skip to content

Releases: phpmyadmin/sql-parser

5.10.2

05 Dec 15:06
72afbce
Compare
Choose a tag to compare

Added

  • Add MariaDb 11.6 and 11.7 contexts (#601)
  • Add context files for MySQL 9.1 (#603)

5.10.1

10 Nov 04:13
b14fd66
Compare
Choose a tag to compare

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

29 Aug 20:59
5.10.0
91d980a
Compare
Choose a tag to compare
  • 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

13 Aug 19:07
5.9.1
169a9f1
Compare
Choose a tag to compare
  • Allow parsing ALTER TABLE statement with column check constraint (#554)
  • Add support for PHPUnit 10 (#573)

5.9.0

20 Jan 20:41
011fa18
Compare
Choose a tag to compare
  • Fix keywords not being recognized as table alias (#496)
  • Add bin/sql-parser executable file (#517)
  • Fix bind parameter in LIMIT OFFSET (#498)
  • Fix using ? as a parameter (#515)

5.8.2

19 Sep 12:36
5.8.2
f1720ae
Compare
Choose a tag to compare

Fixed ALTER .. MODIFY ... ENUM failed! #511

5.8.1

15 Sep 18:23
5.8.1
b877ee6
Compare
Choose a tag to compare
  • 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 in WHERE clauses (#491)
  • Fix invalid hexadecimal prefix 0X (#508)

5.8.0

05 Jun 18:20
5.8.0
db1b306
Compare
Choose a tag to compare
  • 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 modifier WITH 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 with IDENTIFIED WITH/VIA/BY option (#431) by @Tithugues
  • Fix COALESCE PARTITION in ALTER TABLE, rather than COALESCE (#323) by @Tithugues
  • Support ALGORITHM and LOCK options in ALTER 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 when fields is in lower case (#236) by @williamdes
  • Support KEY on CreateDefinition (#330) by @williamdes
  • Fix CALL statements parsing (#372) by @williamdes
  • Implement support for LEFT JOIN, JOIN, INNER JOIN on UpdateStatement (#260) by @williamdes
  • Implement support for TABLE and REPLACE statements on DESCRIBE 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

25 Jan 10:44
5.7.0
0f5895a
Compare
Choose a tag to compare

5.6.0

02 Jan 05:39
5.6.0
63f2f77
Compare
Choose a tag to compare
  • Add missing return types annotations (746f48f) by @MauricioFauth
  • Improve the WITH statements parser (#363) by @iifawzi
  • Add support for passing Context::SQL_MODE* constants to Context::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] on Statement and Expression classes for PHP 8.2 support (4ee76d9) by @williamdes
  • Support ALTER queries of PARTITIONS (#329) by @iifawzi
  • Fixed differentiating between ANALYZE and EXPLAIN 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 and multipolygon 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