1 #include "common.h" 2 3 /* Test commit/rollback with auto commit set to on (the default) */ 4 main(void)5int main(void) 6 { 7 odbc_use_version3 = 1; 8 odbc_connect(); 9 10 CHKEndTran(SQL_HANDLE_DBC, odbc_conn, SQL_COMMIT, "S"); 11 CHKEndTran(SQL_HANDLE_DBC, odbc_conn, SQL_ROLLBACK, "S"); 12 13 odbc_disconnect(); 14 15 printf("Done.\n"); 16 return 0; 17 } 18