sqlite3-transactions icon indicating copy to clipboard operation
sqlite3-transactions copied to clipboard

error native deadlock

Open luisolarte opened this issue 8 years ago • 1 comments

Hi

I was testing your node module, the test i made was to put intencionally a error in one query in a list of queries to generate a rollback, but every error dead the app, i tried to capture error putting the commit funcion in a try catch, but the app died with any error in a query by error native.

`transaction i'm use

    db.beginTransaction(function(err, transaction){

        try {
            for (var key in listQueries) {
                transaction.run(listQueries[key]);
            }
            transaction.commit(function (err) {
                callback(err);
            });
        }
        catch(err){
            logger.write(err, logger.level.ERROR);
            callback(err);
        }

    });`

luisolarte avatar Nov 30 '16 15:11 luisolarte

Sorry, I am not actively maintaining the module any more. Have you managed to fix the problem? If so I will be happy to accept your pull request.

Strix-CZ avatar Jan 03 '17 21:01 Strix-CZ