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

Can't call a function ? #196

Open
richardnassar-external opened this issue Jul 26, 2019 · 0 comments
Open

Can't call a function ? #196

richardnassar-external opened this issue Jul 26, 2019 · 0 comments

Comments

@richardnassar-external
Copy link

I'm trying to call a function from oracle in nodejs... I tried calling a query this way :
statement.executeQuery( select P_points_mgmt.f_upd_rec(${CLIENT_CODE}, ${status}) from dual, (executeErr, resultset) => {
if (executeErr) {
logger.error(Execution Error: ${executeErr});
} else {
resultset.toObjArray((err, results) => {
logger.info(JSON.stringify(results));
});
}
}

It's working fine but when i want to call a function it's not.
what is the proper way to call a function ?? I tried select fctNamr from dual did not work also tried without from dual.

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