version 2004
PGSQL_GetFieldSize (resID; fieldIndex; fieldSize) Longint
| Parameter | Type | Description | |
| resID | Longint | Result ID returned by PGSQL_Execute | |
| fieldIndex | Integer | Field index in the result set | |
| fieldSize | Integer | Field size | |
| Function result | Longint | Error code (where 0 means no error) |
Description
The PGSQL_GetFieldSize command gives the space allocated for this field in a database tuple; in other words, the size of the server's binary representation of the data type. -1 is returned if the field is variable size. It returns an error code (Longint) where 0 means no error. fieldIndex is 0 based.
resID is a Longint that corresponds to the result ID returned by PGSQL_Execute.
fieldIndex is an Integer that corresponds to the field index in the result set (0 based).
fieldSize is an integer that is returned which corresponds to the field size.