PGSQL_GetFieldType

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

version 2004


PGSQL_GetFieldType (resID; fieldIndex; fieldType) Longint

ParameterTypeDescription
resIDLongintResult ID returned by PGSQL_Execute
fieldIndexIntegerField index in the result set
fieldTypeIntegerField type
Function resultLongintError code (where 0 means no error)

Description

The PGSQL_GetFieldType command gives the type of the field at the fieldIndex index in the result set returned by PGSQL_Execute. 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).

fieldType is an integer that is returned which corresponds to the field type. See the PostgreSQL documentation to find out which data type corresponds to the integer returned.


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