Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Length of VARCHAR2 fields
Hello,
I have an apllication in C reading data from Oracle tables. The program has been compiled using the Oracle precompiler Pro*C. The Programm uses dynamical SQL. Values are fetched using a SQLDA structure. My problem is to get the actual lenghth of VARCHAR2 data duroing FETCH. Before FETCH I store the maximum lenght of the data in the length element of the SQLDA. If I read a value which is shorter than this value Oracle always fills the buffer with padding blanks. The length element in the SQLDA remains unchanged.
Does anyone know a solution for this problem ?
Thank you
Dr. Hans Zekl
Ton Beller GmbH
Email: hz_at_tonbeller.com
Received on Thu Oct 23 1997 - 00:00:00 CDT
![]() |
![]() |