#include "hgupstore.h" #define SQLCA_STORAGE_CLASS extern #define ORACA_STORAGE_CLASS extern #include // Include the SQL Communications Area #include // ************************************************************************ // ---------------------- sqlHandleError ------------------------------- // ************************************************************************ void HGupStore::sqlHandleError(const char* msg) { // error messages of Oracle cerr << endl << msg << endl; cerr << sqlca.sqlerrm.sqlerrmc << endl; return; } // ************************************************************************ // ---------------------- rollback ------------------------------------- // ************************************************************************ void HGupStore::rollback() { EXEC SQL ROLLBACK WORK RELEASE; exit(1); } // ************************************************************************ // ---------------------- commit ------------------------------------- // ************************************************************************ void HGupStore::commit() { EXEC SQL COMMIT WORK; return; }