8 Feb
2008
8 Feb
'08
8:15 p.m.
On 08-02-2008 13:08:13 +0530, Yuvaraj Athur Raghuvir wrote:
To move towards the application I intend to experiment on, I need some more information: 1) How to make data durable? In the simple example, I tried the following: [snip]
code snippet >>>>> dbh = embedded_sql (set, setlen); if (dbh == NULL || mapi_error(dbh)) die(dbh, hdl); /* switch off autocommit */ if (mapi_setAutocommit(dbh, 0) != MOK || mapi_error(dbh)) die(dbh,NULL);
You never commit in your example, so it seems logical to me that your data isn't durable. Either don't disable auto-commit, or manually commit after each transaction.