Skip to content

Releases: phpmyadmin/sql-parser

5.11.1

20 Jul 15:52
1b70d03
Compare
Choose a tag to compare

Added

  • Add context files for MySQL 9.2, MySQL 9.3 and MariaDB 12.1 (#628)
  • Add context files for MariaDB 11.8 and MariaDB 12.0 (#620)

Fixed

  • Fix Window function handling that failed because of "OVER" keyword case-sensitive comparison (#623)

5.11.0

22 Feb 20:04
07044bc
Compare
Choose a tag to compare

Added

  • Add Translator::setLocale() method (#599)

Fixed

  • Fix FORCE INDEX not been parsed correctly (#614)
  • Fix parsing of ADD UNIQUE and ADD UNIQUE KEY for ALTER TABLE statements (#611)

5.10.3

19 Jan 14:01
5.10.3
Compare
Choose a tag to compare
  • Add "RECURSIVE" on build() for "WITH RECURSIVE" on the WithStatement class (#605)
  • Fix for quadratic complexity in certain queries, which could have caused long execution times.
    • Thanks to Maximilian Krög @MoonE for this fix to help improve security.

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)