1406 (truncation) error
397575Jul 28 2003 — edited Nov 20 2005If buffer length specified by OCIDefineByPos is less than the actual data length, the subsequent OCIStmtFetch fails with 1406 error. In Oracle 7 API, the ODEFIN/OFEN sequence would actually return truncated data, that is, OFEN would return whatever size (0-n) was specified in the ODEFIN. Is there a way to override with OCI 8i/9i calls, so that the truncated data (0-n characters) is returned?