-
Notifications
You must be signed in to change notification settings - Fork 521
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
executeSql hangs when sending boolean values as params #63
Comments
If we apply this change , it will be backward incompatible... |
That's fine for me. I have a couple more suggestions:
I think we can deduce that PR #61 is correct according to the draft Web SQL database standard [1] sections 4.2 and 5 (released in November 2010). Section 4.2 [2] specifies how to bind each "?" placeholder. According to section 5 [3]:
We generally support SQLite 3.7.x and 3.8.x which should be very close to the "SQL dialect" supported by SQLite 3.6.19. According to ECMA 262 5.1 [4](June 2011) section 9.1 [5] there is no conversion from the Boolean type. Then according to [6] SQLite 3.x.x: "Boolean values are stored as integers 0 (false) and 1 (true)." I am now considering whether or not to apply a similar fix to the Cordova sqlite plugin. [1] https://www.w3.org/TR/webdatabase/ |
part of 3.1.0 release |
When calling executeSql with boolean value as param the function hangs on IOS
no callback at all success / error
Pull request #61 converts boolean to 0/1
Update: it doesn't happen when running with Chrome debugger
The text was updated successfully, but these errors were encountered: