Alasql: indexedDB engine not throw onerror on IOS 9.3.5 mobile safari

Created on 13 Sep 2018  路  1Comment  路  Source: agershun/alasql

Hi,
Thanks for the great library.
I'm using alasql to store data into indexeddb and read data again when user refresh page. It works well on almost every browser except IOS 9.3.5 mobile safari. It will throw an 'onerror' exception and without any information.

My testing code is simple:

  1. Create indexeddb database if not exists
  2. Attach indexeddb database
  3. Create table
  4. Delete table manually (not using alasql, just use native code deleteObjectStore )
  5. refresh page and do 1-3 again, crash at step 3

I read the source of 91indexeddb.js, and find the 'onversionchange' event seems not correct, here is what I find from stackoverflow:
https://stackoverflow.com/questions/43215199/indexeddb-onupgradeneeded-event-never-finishes

! Bug Code provided to reproduced Good first issue Help wanted

Most helpful comment

iOS 9.3.5 is outdated?

>All comments

iOS 9.3.5 is outdated?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AmyBlankenship picture AmyBlankenship  路  6Comments

mwhebert picture mwhebert  路  3Comments

arnemorken picture arnemorken  路  6Comments

peon501 picture peon501  路  5Comments

daffodilistic picture daffodilistic  路  3Comments