Done
When an application and/or process has completed operations with the database, it must release resources by disconnecting from the database engine. Below is the code for Done(): /* * Done() * * This function handles the housekeeping of closing connection and * freeing of associated memory */ void Done(void) {
os_printf(DH_STRING_LITERAL("DONE\n"));
/* disconnect from server */ EXEC SQL DISCONNECT CURRENT ; if (sqlca.sqlcode) Handle_Error(sqlca.sqlcode, sqlca.sqlerrm); } |
|||