Skip to content

error native deadlock #8

@luisolarte

Description

@luisolarte

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);
        }

    });`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions