Could not get object type attribute number as int64 or bytes · Issue #35 · oracle/odpi (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
Object type attribute number could be get as double but not as int64 or bytes.
I made a test program.
https://gist.github.com/kubo/aea497d746d3d1603882c86b450accc0
It printed:
Getting ObjectCol.NumberValue as DPI_NATIVE_TYPE_DOUBLE
=> 1
Getting ObjectCol.NumberValue as DPI_NATIVE_TYPE_INT64
=> ERROR: DPI-1014: conversion between Oracle type 2010 and native type 3000 is not implemented
Getting ObjectCol.NumberValue as DPI_NATIVE_TYPE_BYTES
=> ERROR: DPI-1014: conversion between Oracle type 2010 and native type 3004 is not implemented
What I want is:
Getting ObjectCol.NumberValue as DPI_NATIVE_TYPE_DOUBLE
=> 1
Getting ObjectCol.NumberValue as DPI_NATIVE_TYPE_INT64
=> 1
Getting ObjectCol.NumberValue as DPI_NATIVE_TYPE_BYTES
=> 1