version 2004
PGSQL_GetPortNum (connID; portNum) Longint
| Parameter | Type | Description | |
| connID | Longint | Connection ID returned by PGSQL_Connect | |
| portNum | Integer | Current port number | |
| Function result | Longint | Error code (where 0 means no error) |
Description
The PGSQL_GetPortNum command gives the current port number used. It returns an error code (Longint) where 0 means no error.
connID is a Longint that corresponds to the connection ID returned by PGSQL_Connect.
portNum is a String that is returned which contains the current port number.