home *** CD-ROM | disk | FTP | other *** search
-
- Prior to version 2, Oraperl could not handle tables which contained
- LONG or LONGRAW datatypes.
-
- The reason for this is that the OCI odsc function, which Oraperl uses
- to determine the amount of buffer space to allocate for each field,
- does not return a meaningful response in these cases. As a result, a
- small buffer was allocated and the data was truncated during the fetch,
- which Oraperl treated as an error.
-
- To deal with LONG datatypes, two variables have been added.
-
- $ora_long may be set by a program to the length of buffer to
- be allocated for any LONG or LONGRAW fields encountered. It
- is initialised to 80, as that is the value used by various
- Oracle tools.
-
- $ora_trunc is a flag which indicates whether truncation of a
- LONG is to be considered an error or permitted. If $ora_trunc
- is zero, then truncation of a LONG field causes &ora_fetch to
- fail. Otherwise, the fetch completes successfully, but $ora_errno
- is still set (to 1406) to warn of the truncation.
-
- &ora_fetch() accepts an optional second parameter which overrides the
- setting of $ora_trunc for that call.
-
- Truncation of all other datatypes remains an error.
-