-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
\u0000 in generated keys #8090
Comments
I think it is in these places where the
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
I think this issue is not resolved. |
Issue
I have a major client who has sent me a test program that demonstrates a major issue with
\u0000
characters and the cordova-sqlite adapter.The following query returns data when using the cordova-sqlite adapter with cordova-sqlcipher-adapter plugin but not when using cordova-sqlite-storage or a new, customized plugin under development:
Here is a trace of a couple of select statements that I got from the new, customized plugin:
Dealing with
\u0000
characters has proven to be a bit problematic across the various implementations and platforms over the years.From an article in 2014 I had thought that supporting
\u0000
characters would not be needed: https://pouchdb.com/2014/10/26/10-things-i-learned-from-reading-and-writing-the-pouchdb-source.htmland this documentation shows how to replace
\u0000
characters when usingpouchdb-collate
: https://github.com/pouchdb/pouchdb/tree/master/packages/node_modules/pouchdb-collate#toindexablestringobjMy guess is that the
\u0000
characters come from PouchDB using the collate module internally.From a quick search I did find a few issues that people have reported and then closed:
\u0000
."Any workaround or long-term solution that would stop using the
\u0000
characters would be extremely helpful.Info
Reproduce
see description
The text was updated successfully, but these errors were encountered: