Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call a "core dump" when query with column "clob" #206

Open
huwei305 opened this issue Aug 5, 2014 · 0 comments
Open

call a "core dump" when query with column "clob" #206

huwei305 opened this issue Aug 5, 2014 · 0 comments

Comments

@huwei305
Copy link

huwei305 commented Aug 5, 2014

call a "core dump" when query with column "clob"

sql script is below:
create table t_test_clob(
id number(10,0),
cb clob
);

insert into t_test_clob values(1,'abcd');
insert into t_test_clob values(2,'aaa');
commit;

node code is below:

var oracle = require('oracle');
var connectData = {
hostname: "10.2.121.98",
port: 1521,
database: "webtest", // System ID (SID)
user: "gfzq",
password: "gfzq"
}

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

connection.execute("select * from t_test_clob", [], function(err, results) {
    if (err) {
        console.log("Error executing query:", err);
        return;
    }
    console.log(results);
    connection.close(); // call only when query is finished executing
});

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant