Rollback occurred due to deadlock during prefetch

Item Value
SQLCODE -684
Constant SQLE_ROLLBACK_ON_PREFETCH
SQLSTATE WW019
Sybase error code 1205
ODBC 2 State 40001
ODBC 3 State 40001

Probable cause 

One of the cursors that was opened with prefetch enabled was performing fetch operations, and a deadlock occurred during a prefetch. This is a deadlock situation and your transaction has been chosen as the one to rollback. The request which received this error was not executed, unless the request was a CLOSE cursor, in which case the cursor was closed.