Comments (6)
I'll take a look and will implement this suggestion if there aren't any difficulties in doing so!
from odpi.
Thank you! I'm looking forward to it.
from odpi.
I created the structure dpiDataTypeInfo as suggested. Thanks! It made sense. The nullOk member is only relevant for queries (not object attributes and collection elements) but the other members all do make sense, and it simplified the code a fair bit, too. Take a look and let me know if that answers your request.
from odpi.
Thank you!
When I wrote the dpiDataTypeInfo, I didn't realize that nullOK is unavailable for object attributes and collection elements. Sorry to bother you, but could you remove the nullOk member from the dpiDataTypeInfo and put it back to dpiQueryInfo? I think that it is better. Well, if my request looks inappropriate, feel free to reject it.
I found a related potential bug.
In dpiStmt__getQueryInfoFromParam, DPI_OCI_HTYPE_DESCRIBE is used as the handle type of the param value. Though it works, it should be DPI_OCI_DTYPE_PARAM because the param is got from OCIParamGet.
from odpi.
When I wrote the dpiDataTypeInfo, I didn't realize that nullOK is unavailable for object attributes and collection elements. Sorry to bother you, but could you remove the nullOk member from the dpiDataTypeInfo and put it back to dpiQueryInfo? I think that it is better.
Agreed. I looked at the documentation and it is explicitly forbidden on object attributes and collection elements -- so I have moved it back as suggested. Thanks.
I found a related potential bug. In dpiStmt__getQueryInfoFromParam, DPI_OCI_HTYPE_DESCRIBE is used as the handle type of the param value. Though it works, it should be DPI_OCI_DTYPE_PARAM because the param is got from OCIParamGet.
It does indeed work so I'll ask about what the correct code ought to be when I ask about the precision attributes, too. Thanks for your feedback.
from odpi.
Thank you!
What I want was added.
from odpi.
Related Issues (20)
- XMLTYPE as "real" XML HOT 3
- Ability to set OCI_ATTR_LOBPREFETCH_SIZE HOT 7
- "ORA-03106: fatal two-task communication protocol error" when CLOB is fetched as strings and then lob locators HOT 3
- core dumps generated in libclntsh when timeouts are configured HOT 10
- Any plan to support Apple's M1 plat? HOT 1
- Is there a reference example dequeue message with message ID dequeue option HOT 9
- When ODPI tries to translate a variable to a temporary LOB, and there is inadequate TEMP tablespace, ODPI segfaults when the cursor is closed HOT 6
- M1 Mac issue ( incompatible architecture) HOT 2
- How to use ODPI-C with Oracle Times Ten? HOT 9
- Column Alias Error HOT 7
- Add an option to convert numbers between double and decimal in the same way as node.js, python3, ruby, rust or so HOT 5
- Oracle Rust driver HOT 2
- Option to get json float as float. It is got as double now. HOT 8
- Bytes after nul in members of dpiXid are zeroed. HOT 2
- Is DPI_TPC_END_SUSPEND an undocumented flag in the OCI manual? HOT 3
- dpiEnqOptions_setVisibility and dpiLob_getType are listed not in round_trips.rst HOT 2
- Get column name for position HOT 2
- `dpiStmt_execute` with `DPI_MODE_EXEC_PARSE_ONLY` will create a table. HOT 4
- Retrieving CLOB from an OUT parameter of an Store Procedure HOT 1
- ERROR: DPI-1047: Cannot locate a 32-bit Oracle Client library HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odpi.