Skip to content

Could not get object type attribute number as int64 or bytes #35

@kubo

Description

@kubo

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions