Branch: refs/heads/5.11.x
Home: https://github.com/phpmyadmin/sql-parser
Commit: 3a7c59a80850d96385792311078112573845140a
https://github.com/phpmyadmin/sql-parser/commit/3a7c59a80850d96385792311078112573845140a
Author: Sean Wei <[email protected]>
Date: 2026-04-01 (Wed, 04 April 2026) +02:00

Changed paths: 
M src/Context.php
M src/Utils/Formatter.php
M tests/Utils/FormatterTest.php

Log Message:
-----------
Fix formatter spacing for JSON path operators (->, ->>)

- Treat `->` and `->>` as SQL operators in the lexer.
- Prevent formatter from inserting spaces around JSON path operators.
- Add formatter test for JSON path access.

For example:

```sql
SELECT
    details->'$."first_name"'
FROM
    users;
```

Signed-off-by: Sean Wei <[email protected]>
Co-Authored-By: William Desportes <[email protected]>

Commit: caf66936b4b036569482270cf20fd0bfeb0c5e67
https://github.com/phpmyadmin/sql-parser/commit/caf66936b4b036569482270cf20fd0bfeb0c5e67
Author: William Desportes <[email protected]>
Date: 2026-04-01 (Wed, 04 April 2026) +02:00

Changed paths: 
M src/Context.php
M src/Utils/Formatter.php
M tests/Utils/FormatterTest.php

Log Message:
-----------
Merge #637 - Fix formatter spacing for JSON path operators (->, ->>)

Pull-request: #637
Signed-off-by: William Desportes <[email protected]>

_______________________________________________
Git mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to