oracle / odpi

ODPI-C: Oracle Database Programming Interface for Drivers and Applications
https://oracle.github.io/odpi/
Other
270 stars 78 forks source link

DPI-1014: conversion between Oracle type 2005 and native type 3004 is not implemented #187

Open tgulacsi opened 2 days ago

tgulacsi commented 2 days ago
  1. What version of ODPI-C are you using (see dpi.h)? 5.4.0

  2. What OS (and version) is your application on? Debian sid

  3. What compiler (and version) did you use? gcc 14.2.0

  4. What is your version of the Oracle Client (e.g. Instant Client)? How was it installed? Where it is installed? oracle-instantclient-basic_23.6.0.24.1

  5. What is your Oracle Database version? 19.23

  6. What problem or error(s) you are seeing? DPI-1014: conversion between Oracle type 2005 and native type 3004 is not implemented

This is correct - I want to dpiObject_setAttribute an attribute that has ROWID type. Oracle does not provide an "OCICharToRowid" function (a'la OCIRowidToChar) - but how could I set such an attribute?

anthony-tuininga commented 5 hours ago

Can you share the type and how it was created? Is this a PL/SQL type? I tried with a named type and it wouldn't allow me to create a type containing a ROWID attribute.