MimerEndSession

Ends a database session.

If there are any active transactions, these are rollbacked.

Parameters

int32_t MimerEndSession (MimerSession *sessionhandle)

sessionhandle

in

A reference to a handle returned by MimerBeginSession[C|8], identifying the session.

Returns

A negative value indicating an error, or zero if successful.

Return value

Description

MIMER_SUCCESS

Success.

MIMER_HANDLE_INVALID

The sessionhandle parameter was not recognized as a handle.

MIMER_SEQUENCE_ERROR

If there are open statements on the session. Use MimerEndStatement to release them.

Other value < 0

Any of the server error codes listed in Return Codes.

Notes

This routine interacts with the database server.

Micro API compatible.