Skip to content

connection.commit() SegFault #146

@felipeaf

Description

@felipeaf

Hi!

All my calls for commit() close node with Segmentation Fault. I tested this with setAutoCommit(false).

I tested with Instant Client 12.1

Example:

var oracle = require("oracle")
var INSERT_EXAMPLE= ... //wherever

oracle.connect(connectData, function(err, connection) {
    if (err) { console.log("Error connecting to db:", err); return; }

    connection.setAutoCommit(false)

    connection.execute(INSERT_EXAMPLE, [], function(err, results) {
        if (err) { console.log("Error executing query:", err); return; }

        //WILL SEGFAULT HERE!!!
        connection.commit(function(err) {
            console.log("callback commit")
            console.log(err)
        });
        connection.close(); // call only when query is finished executing
    });
});

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