mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-10 00:39:44 -06:00
Fixes dolthub/dolt#9556 The issue was in dolt's JSON path parser where unnecessarily quoted simple field names like $."a" were being rejected, despite MySQL accepting them. This caused compatibility issues with Django's compile_json_path() function which always quotes keys. Changes: - Fixed lexer in json_location.go to properly handle quoted field names - Adjusted token position when encountering opening quotes - Corrected empty string detection logic for quoted keys - Added comprehensive tests matching the customer's use case The fix ensures MySQL compatibility for: - $.a (unquoted field names) - $."a" (unnecessarily quoted simple field names) - $."a key" (necessarily quoted field names with spaces) - $."a"."b" (nested quoted field names) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>