-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
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
Labels
No labels