Skip to content

Collection is empty in IE11 with compund indexes #10

Description

@lifter035

Hi guys,

Should below work in IE11 with current state of this polyfill?
I don't seem to be getting any errors it's just that items is empty array in IE11.

Thanks

this.$db = new Dexie("Sync");

this.$db.version(1).stores({

    repos: "&name",
    metadata: "&path,repoName,size,[contentType+timelineDate],[contentType+versionCreated],extension,versionCreated,timelineDate"

});

this.$db.open();

this.$db.metadata.where('[contentType+timelineDate]').between(['photo', -Infinity], ['photo', '\uffff']).reverse().offset(0).limit(60).toArray().then(function (items) {

       sys.Debug(items);

}).catch(function (error) {

    sys.Error(error);

 });

BTW this code is not executed at the same time. Query is executed after stores are populated first time or updated with changes. Records are returned if I use simpler query like:
this.$db.metadata.where("repoName").equals("Drive").offset(0).limit(60).toArray()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions