The Wayback Machine - https://web.archive.org/web/20201016120944/https://github.com/dfahlander/Dexie.js/issues/1052
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

uniqueKeys() fails in Safari on empty DB #1052

Open
dholth opened this issue May 21, 2020 · 3 comments
Open

uniqueKeys() fails in Safari on empty DB #1052

dholth opened this issue May 21, 2020 · 3 comments

Comments

@dholth
Copy link

@dholth dholth commented May 21, 2020

Unhandled rejection: UnknownError: Unable to open cursor

Add a row: it works.

@dfahlander
Copy link
Owner

@dfahlander dfahlander commented May 24, 2020

Ok, thanks! We'd need a repro to verify this. Seems it would be easy to patch it in dexie. There still seems to be a few issues with Safari we'll need to patch.

For any voluntary user: A repro of this issue should be placed in a new unit test, in any of the existing modules such as tests-misc.js.

It would be important to know what actually triggers the error. Possible reasons:

  1. Database is empty
  2. Table is empty
  3. No read- or write requests where made to the database since current connection was opened.
  4. No write requests has been made since current connection was opened.
@dfahlander
Copy link
Owner

@dfahlander dfahlander commented May 24, 2020

Also, this issue should be filed in Webkit bugzilla

@edwardxia
Copy link

@edwardxia edwardxia commented Jun 8, 2020

This is a dup of #1030. Repro is available in #1030.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.