Closed matsuo-ts closed 7 years ago
Is it possible to post your schema? This would help very much to reproduce.
@pubkey Sorry for less information. Here is my schema for this collection.
export const COLLECTION_SCHEMA = {
'disableKeyCompression': true,
'title': 'User Preferences',
'version': 0,
'description': 'DESCRIPTION',
'type': 'object',
'properties': {
'user_id': {
'type': 'string',
'primary': true
},
'user_pwd': {
'type': 'string',
'encrypted': true
},
'last_login': {
'type': 'number'
},
'status': {
'type': 'string'
}
},
'required': [ 'user_pwd', 'last_login', 'status' ]
};
I use 'last_loginas
KEY1, 'status
as KEY2
.
@matsuo-ts I was able to reproduce the error, but my current solution breaks something else.
Case
Bug on
find()
andfindOne()
Issue
@pubkey As I reported in #154 , after updating to
4.0.0
, error occurring in collection query.This error does not happen in version
3.0.2
. Maybe this comes form PouchDBInfo
Environment: (Node.js/browser/electron/etc.)
Adapter: (IndexedDB/Localstorage/LevelDB/etc.) WebSQL
Code