indexeddbshim / IndexedDBShim

A polyfill for IndexedDB using WebSql
Other
968 stars 191 forks source link

Transaction error should propagate to db.onerror callback #205

Closed alekseykulikov closed 9 years ago

alekseykulikov commented 9 years ago

You already call onerror callback on transaction. So solution might be to add:

idbModules.util.callback("onerror", me.db, evt);

to https://github.com/axemclion/IndexedDBShim/blob/master/src/IDBTransaction.js#L109

unkillbob commented 9 years ago

I think this is causing issues for us whereby when Safari prompts the user to permit access to more disk space the current transaction that triggered the prompt silently fails. This results in data being lost without our code being any the wiser.

JamesMessinger commented 9 years ago

This is fixed now (as of v2.2.1)