Deadlock detected

Item Value
SQLCODE -306
Constant SQLE_DEADLOCK
SQLSTATE 40001
Sybase error code 1205
ODBC 2 State 40001
ODBC 3 State 40001

Probable cause 

You attempted to read or write a row and it is locked by another user. Also, the other user is blocked directly or indirectly on your own transaction. This is a deadlock situation and your transaction has been chosen as the one to rollback.