Connection is not allowed to have table locks when executing this statement

Error constant SQLE_CONNECTION_HAS_LOCKS
ODBC 2 state ERROR
ODBC 3 state ERROR
Severity 16
SQLCODE -1324
SQLSTATE WW142
Sybase error code 13232
 Probable cause