Skip to content

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>
@cjbj
Copy link
Member

cjbj commented Dec 20, 2019

Can you point me at your OCA entry?

@arcezd
Copy link
Author

arcezd commented Dec 20, 2019

Can you point me at your OCA entry?

I emailed it in few hours ago.

@cjbj
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

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.

case DPI_ORACLE_TYPE_BLOB:
return NJS_DATATYPE_BLOB;
case DPI_ORACLE_TYPE_BOOLEAN:
return NJS_DATATYPE_BOOLEAN;
Copy link
Member

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.

@cjbj
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.

Signed-off-by: Diego Arce <Diego@arce.cr>
@cjbj
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants