Allow to get/set RAW attributes of Objects · Issue #72 · oracle/odpi (original) (raw)

For general questions:

I need to access RAW attributes of Objects. Currently support for this is missing in odpi...

I implemented this to get my script work.
It's only about 26 lines of code to add.
(You could see how I implemented for me at https://github.com/Elias481/odpi/pull/1/files).

But probably I would change slightly more lines and change signature of dpiOci__rawPtr to char** for ptr as this looks more clean to me (beeing not a C programmer...).
I also checked this works but not really tested for side effects on the other code that uses dpiOci_rawPtr..
(https://github.com/Elias481/odpi/pull/2/files)

Answer the following questions:

  1. What version of ODPI-C are you using (see dpi.h)?
    current (3.0.0) / master from github
  2. What exact command caused the problem (e.g. what command did you try to install with)? Who were you logged in as?
    get or set RAW attributes of Objects
  3. What error(s) you are seeing?
    For example in cx_Oracle I get "cx_Oracle.NotSupportedError: Oracle type 0 not supported." when trying to access the RAW attributes of Objects
  4. What OS (and version) is your application executing on?
    Linux
  5. What is your version of the Oracle client (e.g. Instant Client)? How was it installed? Where it is installed?
    Different (11.2.0.4, 18.3.0.0, ORACLE_HOME and Instant-Client)
  6. What is your Oracle Database version?
    Issue exists with 11.2.0.4 and 18.3.0.0 and probably all the versions between..
  7. What is the PATH environment variable (on Windows) or LD_LIBRARY_PATH (on Linux) set to? On macOS, what is in ~/lib?
    The one needed for the client I want to use...
  8. What environment variables did you set? How exactly did you set them?
    Depends on client and setup I want to use. Eigther ORACLE_HOME or LD_LIBRARY_PATH or nothing at all if I use Instant-Client with ld.conf.so setup for the client and use Python ctypes to preload libclntsh.so*. Sometimes I also set NLS_LANG... How I set them depends on how I execute the Python scripts...
  9. What compiler version did you use?
    For example gcc 4.8.5 20150623 (Red Hat 4.8.5-28)