Skip to content
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

Multi Row Statement does not escape characters #535

Closed
lasher23 opened this issue Apr 15, 2024 · 4 comments
Closed

Multi Row Statement does not escape characters #535

lasher23 opened this issue Apr 15, 2024 · 4 comments

Comments

@lasher23
Copy link

lasher23 commented Apr 15, 2024

Describe the bug
Using a multi row statement via the executeSet Plugin Method does not escape special characters

To Reproduce

  1. use executeSet method
  2. pass a two dimensional array as paramter to trigger multi row statement
  3. pass as one parameter of the value a string with a special charachter, like '

Expected behavior
If a special character is used it should be appropriatly escaped

Desktop (please complete the following information):

  • OS: Android --> unknown if the same error persists on IOS
  • Browser chrome
  • Version 5.7.0
@lasher23 lasher23 changed the title Multi Row Statement does not escape charachters Multi Row Statement does not escape characters Apr 15, 2024
@jepiqueau
Copy link
Collaborator

@lasher23 please give a full example

lasher23 pushed a commit to lasher23/sqlite that referenced this issue Apr 16, 2024
@lasher23
Copy link
Author

lasher23 commented Apr 16, 2024

Yeah Sure i also created a pull request

execute("create table abc (name varchar(20))")
executeSet([{statement: "insert into abc(name) values (?)", values: ["a'b"]}])

jepiqueau added a commit that referenced this issue Apr 23, 2024
#535 escape string in multi row statements values via DatabaseUtils
@jepiqueau
Copy link
Collaborator

@lasher23 fix in v5.7.3-2 thanks for your contribution

@lasher23
Copy link
Author

@jepiqueau thank you for merging

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants