Cannot enlist in a transaction with uncommitted data pending

Item Value
SQLCODE -802
Constant SQLE_CANNOT_ENLIST_WITH_UNCOMMITTED_DATA
SQLSTATE 55W11
Sybase error code 13812
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

You tried to enlist a transaction on a connection that has pending uncommitted data.