Skip to content

fix: extractColumnTypes parse sql err#387

Merged
hantmac merged 2 commits into
mainfrom
fix/regex-parse-err
Apr 1, 2026
Merged

fix: extractColumnTypes parse sql err#387
hantmac merged 2 commits into
mainfrom
fix/regex-parse-err

Conversation

@hantmac
Copy link
Copy Markdown
Member

@hantmac hantmac commented Mar 31, 2026

The regex ((.?)) blindly matched the first parenthesesin any SQL, so SELECT COUNT() FROM table would match (*) and return * as a parameter — giving param count 1 instead of 0

@hantmac hantmac requested a review from youngsofun April 1, 2026 02:06
@hantmac hantmac merged commit d9a0f5d into main Apr 1, 2026
9 checks passed
@hantmac hantmac deleted the fix/regex-parse-err branch April 1, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant