Example: lrd_ora8_rollback
In the following example, the lrd_ora8_rollback function rolls back the current transaction.
lrd_ora8_stmt(OraStm1, "insert into mytab 2 values (:p)\n", 1, 0, 0);
lrd_assign(&P_D1, "abcdefghi", 0, 0, 0);
lrd_assign(&P_D1, "abcdefghi", 0, 1, 0);
lrd_ora8_bind_placeholder(OraStm1, &OraBnd1, "P", &P_D1, 0, 0, 0);
lrd_ora8_exec(OraSvc1, OraStm1, 2, 0, &uliRowsProcessed, 0, 0, 0, 0, 0);
lrd_handle_free(&OraStm1, 0);
lrd_ora8_rollback(OraSvc1, 0, 0);