The default value for
is a database object, then it is used directly. Otherwise, the list of connected databases is searched to find one with database as its connection specifications (see
). If no such database is found, then if
are both non-
an error is signaled, otherwise
controls whether an error should be signaled if the existing database connection cannot be closed. When non-
(this is the default value) the connection is closed without error checking. When
, an error is signaled if the database connection has been lost.
might result in a memory leak if the database driver fails to release its memory (some drivers do not allow the connection to be closed if the underlying RDBMS is not responding).