From: Vladimir T. <pr...@hm...> - 2003-04-28 13:12:04
|
Examples Driver XTG_ODBC // ============================================================= SQLRETURN SQL_API SQLAllocConnect( SQLHENV henv, SQLHDBC *hdbc ) { DBC *dbc; DBUG_ENTER("SQL_AllocConnect"); // allocate memory and set up initial values *hdbc = (SQLHDBC) malloc(sizeof(DBC)); dbc = (DBC*) *hdbc; dbc->env = (ENV*)henv; dbc->db = 0L; // InterBase needs to zero this one dbc->tr = 0L; // InterBase needs to zero this one dbc->auto_commit = TRUE; // auto-commit is enabled by default dbc->isollevel = SQL_TXN_READ_COMMITTED; // isolation level is READ_COMMITTED by default ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- Best regards, Vladimir Tcvigyn |