See ODBC Connection Strings for a complete discussion of PSQL connection strings and the keywords.
Calling SQLFreeStmt with the SQL_CLOSE option changes the
SQLState but does not close the open tables used by the
hStmt. To close the tables currently used by
hStmt,
SQLFreeStmt must be called with the SQL_DROP option.
When SQLPrepare is subsequently called on the
hStmt, the tables used in the previous statement are closed. For example, when the following call is made, both the Emp and Dept tables are closed by PSQL: