Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix Booleans at njsDbObject_transformFromOracle #1190

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

Closed
arcezd wants to merge 5 commits into oracle:master from arcezd:fix-boolean

Conversation

@arcezd
Copy link

@arcezd arcezd commented Dec 20, 2019

  1. Support 'PL/SQL BOOLEAN' at tranformation from DBObject to Javascript values.

Signed-off-by: Diego Arce Diego@arce.cr

#1189

1. Support 'PL/SQL BOOLEAN' at tranformation from DBObject to Javascript values.
Signed-off-by: Diego Arce <Diego@arce.cr>
Copy link
Member

cjbj commented Dec 20, 2019

Can you point me at your OCA entry?

Copy link
Author

arcezd commented Dec 20, 2019

Can you point me at your OCA entry?

I emailed it in few hours ago.

Copy link
Member

cjbj commented Dec 20, 2019

That's great! I'll ask the OCA team to keep an eye out for it.

1. Support 'PL/SQL BOOLEAN' as OUT parameter to Javascript value.
Signed-off-by: Diego Arce <Diego@arce.cr>
1. Support bind 'PL/SQL BOOLEAN' type as IN parameter in PL/SQL store procedures.
Signed-off-by: Diego Arce <Diego@arce.cr>
1. Support 'PL/SQL BOOLEAN' at tranformation to DBObject from Javascript values.
Signed-off-by: Diego Arce <Diego@arce.cr>
case DPI_ORACLE_TYPE_BOOLEAN:
vars[i].varTypeNum = DPI_ORACLE_TYPE_BOOLEAN;
vars[i].nativeTypeNum = DPI_NATIVE_TYPE_BOOLEAN;
break;
Copy link
Member

@anthony-tuininga anthony-tuininga Jan 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is not needed as booleans cannot be fetched. They can only be used in PL/SQL.

arcezd reacted with thumbs up emoji
case DPI_ORACLE_TYPE_BLOB:
return NJS_DATATYPE_BLOB;
case DPI_ORACLE_TYPE_BOOLEAN:
return NJS_DATATYPE_BOOLEAN;
Copy link
Member

@anthony-tuininga anthony-tuininga Jan 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is not needed as booleans cannot be fetched. They can only be used in PL/SQL.

arcezd reacted with thumbs up emoji
Copy link
Member

cjbj commented Jan 14, 2020

@arcezd thanks for getting the OCA submitted. You can see @anthony-tuininga has some comments; more on this below.

If you're not aware of the process we use, we'll merge your PR to a private git repo (where we work on things like not-yet released Oracle DB features), and then merge back to GitHub, and make a release.

For timing reasons, don't worry about making the trivial changes noted by @anthony-tuininga. He'll make them when we merge the PR. We'll add tests and doc too.

arcezd reacted with thumbs up emoji

Signed-off-by: Diego Arce <Diego@arce.cr>
Copy link
Member

cjbj commented Jan 22, 2020

@arcezd this finally landed in node-oracledb 4.2. It coincided nicely with the other bind changes. Thanks!

@cjbj cjbj closed this Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@anthony-tuininga anthony-tuininga anthony-tuininga left review comments

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /