Skip to content

fix query parameters incorrect parsing #654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 3, 2025

Conversation

Wize-ND
Copy link

@Wize-ND Wize-ND commented Mar 14, 2025

Hi, found bug when tried to execute query with qoueted string, which contains http link.
like that: "select '"http://something"' from dual" (note single and double qoutes).
function refineSqlText which used by parseQueryParametersNames ignores order of quotation.
refineSqlText returns "select http:something from dual" and ":something" populates named parameters array.
This PR fixes that.

@sijms sijms merged commit fd76749 into sijms:master Apr 3, 2025
0 of 3 checks passed
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.

2 participants