oracle / odpi

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

Question about dpiLob_getChunkSize #91

Closed felipenoris closed 5 years ago

felipenoris commented 5 years ago

Does this function always return a number of bytes, or it returns a number of chars in the case the LOB holds character data?

anthony-tuininga commented 5 years ago

The value is always in bytes. I have adjusted the documentation to make that clear. :-)

anthony-tuininga commented 5 years ago

@felipenoris, I draw your attention to a couple of new samples that I just added that demonstrate how to fetch CLOBs as strings and BLOBs as bytes. For smaller LOBs this can be a substantial performance boost as fewer round trips to the database are required. Please keep this in mind while developing your Julia driver!

felipenoris commented 5 years ago

@anthony-tuininga , thanks a lot! I'm currently working on LOB support for Oracle.jl, so this will help me a lot!