Here is our problem.

We are using SQLDA to get result of SELECT.
In our table we got VARCHAR FOR BIT DATA field.

In SQLDA this field type is "varying length string for C (null terminated)"
(SQL_TYP_CSTR or 460)

Our value is x'45006789'

FETCH puts in SQLDA only first two bytes x'4500' (it ignore all going behind null terminator)

So how we can solve this problem?

Thank You wery much.

Vladimir Fridman