Fix PostgreSQL test errors: union operations and JSON field access #590
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes several PostgreSQL-related test failures that were preventing proper testing and usage of Red ORM with PostgreSQL databases.
Issues Fixed
1. Union/Minus Operations (t/14-union.rakutest)
2. JSON Field Access (t/37-json.rakutest)
stringify-json = False
for proper JSONB handling'{key}'
instead of incomplete'{key'
:!pretty
)Technical Changes
'\{$path\}'
syntax to generate proper'{key}'
pathsstringify-json
fromTrue
toFalse
for native JSONB storageTesting Status
The latest fix addresses a syntax error where the closing brace wasn't properly escaped in the JSONB path generation, which would have caused malformed SQL queries.
Fixes #589.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.