diff -c psqlodbc.orig\connection.c psqlodbc\connection.c *** psqlodbc.orig\connection.c Sun Dec 04 22:16:28 2005 --- psqlodbc\connection.c Fri Dec 09 03:58:42 2005 *************** *** 1343,1348 **** --- 1343,1351 ---- ci->updatable_cursors = ci->allow_keyset; #endif /* DRIVER_CURSOR_IMPLEMENT */ + if (!CC_is_in_autocommit(self)) + CC_commit(self); + CC_clear_error(self); /* clear any initial command errors */ self->status = CONN_CONNECTED;