Closed djcp closed 11 years ago
Interestingly, we could insert names with a single quote without issue, it was just querying for them afterwards that blew up.
Confirmed the issue. I created an issue on NanoStore (https://github.com/tciuro/NanoStore/issues/45)
Thanks for report. NanoStore 2.1.8 + latest nano-store gem fix the issue.
https://github.com/siuying/NanoStoreInMotion/compare/v0.5.0%E2%80%A6v0.5.1
Nice work! We're running into an issue, though, where it appears that single quotes aren't being escaped properly when passed to Model.find.
throws an error that ultimately results in a SQLite error code 1.
Works properly, note the second single quote escaping the first.