-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(prettyCQL): prettyCQL crashes on ouf-of-bound access
When gemini tries to `pretty print` CQL, in some cases can fail with `out-of-bounds` access on array. ```go out = append(out, queryChunks[qID]) ``` This fix uses new go1.23 iter funcs, which removes the allocations, and is not concerened with indexes which caused the issue in the first place. I tried to remove the `switch .(type)` but `TuppleType` is different so has to be still there. Signed-off-by: Dusan Malusev <[email protected]>
- Loading branch information
1 parent
783bd13
commit 4c6572e
Showing
1 changed file
with
69 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters