version 2004
PGSQL_GetDbName (connID; dbName) Longint
| Parameter | Type | Description | |
| connID | Longint | Connection ID returned by PGSQL_Connect | |
| dbName | String | Current database name | |
| Function result | Longint | Error code (where 0 means no error) |
Description
The PGSQL_GetDbName command gives the name of the current database. 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.
dbName is a String that is returned which corresponds to the current database name.