PGSQL_GetFieldLength

4D - Documentation   Français   English   German   4D For PostgreSQL, Command Theme List   4D For PostgreSQL, Command Alphabetical List   Back   Previous   Next

version 2004


PGSQL_GetFieldLength (resID; rowIndex; fieldIndex; fieldLength) Longint

ParameterTypeDescription
resIDLongintResult ID returned by PGSQL_Execute
rowIndexLongintRow index
fieldIndexIntegerField index
fieldLengthIntegerField length
Function resultLongintError code (where 0 means no error)

Description

The PGSQL_GetFieldLength command gives the actual data length for the particular data value; that is, the size of the object pointed to by the PGSQL_Get[TYPE]Value command . Note that for character-represented values, this size has little to do with the binary size reported by PGSQL_GetFieldSize. It returns an error code (Longint) where 0 means no error. fieldIndex and rowIndex are 0 based.

resID is a Longint that corresponds to the result ID returned by PGSQL_Execute.

rowIndex is a Longint that corresponds to the row index (0 based).

fieldIndex is an Integer that corresponds to the field index (0 based).

fieldLength is an Integer that is returned which corresponds to the field length in bytes.


4D - Documentation   Français   English   German   4D For PostgreSQL, Command Theme List   4D For PostgreSQL, Command Alphabetical List   Back   Previous   Next