Skip to content

Segmentation fault (core dumped) #60

@chrisantoni

Description

@chrisantoni

let opts = {
database : "sampling@myserver",
username : "informix",
password : "xxxxxxx"
}

let informix = require("informix")(opts)
let create_table = CREATE RAW TABLE IF NOT EXISTS dumb (test_id SERIAL,age INT,value BSON);
let inservalues = INSERT INTO dumb(test_id,age,value) VALUES (0, 50, '{math:"80"}'::JSON);
let select_table = SELECT value::JSON FROM dumb;

informix
.query(select_table)
.then(cursor => cursor.fetchAll( { close : true } ))
.then(result => {
console.log(result);
})

cant get value from bson datatype
error : Segmentation fault (core dumped),

when i run the query SELECT value::JSON FROM dumb; in dbaccess, i got
(expression) {"math":"80"}

any idea whats happening here ?
thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions