Skip to content
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

Opening cursors on Indexes (v0.1.2) #90

Closed
theycallmezip opened this issue Dec 4, 2013 · 2 comments
Closed

Opening cursors on Indexes (v0.1.2) #90

theycallmezip opened this issue Dec 4, 2013 · 2 comments

Comments

@theycallmezip
Copy link

It appears as if it's not possible to open a cursor on an index in Safari or Chrome on the iOS (The issue appears to also be present in desktop Safari).

Specifically, if I am to open a cursor on an open database (named db) on a given store (storename) with the following code:
"db.transaction(storename, 'readonly').objectStore(storename).openCursor()"
Everything is fine, the cursor opens and I am able to cycle through the store's contents.

However, if I want to open a cursor on an index for the property 'name' using the following code,
"var test = db.transaction(storename, 'readonly').objectStore(storename).index('name').openCursor();"
the object test will remain in the status 'pending' for eternity and never run the thread. This is a significant problem for me, as I would prefer to allow the DB to handle some of the sorting.

I am using v0.1.2 - 2013-07-11

@matb33
Copy link
Contributor

matb33 commented Dec 18, 2013

I'm experiencing the exact same issue (have just encountered this under iOS)

@matb33
Copy link
Contributor

matb33 commented Dec 18, 2013

If it helps at all, while trying to debug this I noticed that in the database my indexes were always "5-undefined".

DickvdBrink pushed a commit to DickvdBrink/IndexedDBShim that referenced this issue Dec 30, 2013
Signed-off-by: Dick van den Brink <d_vandenbrink@outlook.com>
morkeleb pushed a commit to morkeleb/IndexedDBShim that referenced this issue Jan 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants