public long getUpdateCount(WSJdbcStatement stmt) throws SQLException
    {
        try
        {
            return super.getUpdateCount(stmt);
        } catch (SQLException x)
        {
            // Work around a Sybase bug where they are raising an error,
            // "JZ0PA: The query has been cancelled"
            // instead of returning -1.
            if ("JZ0PA".equals(x.getSQLState()))
            {
                if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                    Tr.debug(this, tc,
                             "Returning stmt.getUpdateCount = -1 to work around Sybase bug", x.getMessage());
                return -1;
            }
            else
                throw x;
        }
    }
public long getUpdateCount ( WSJdbcStatement stmt ) throws SQLException { try { return super . getUpdateCount ( stmt ) ; } catch ( SQLException x ) { if ( "JZ0PA" . equals ( x . getSQLState ( ) ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "Returning stmt.getUpdateCount = -1 to work around Sybase bug" , x . getMessage ( ) ) ; return - 1 ; } else throw x ; } }
@see com.ibm.ws.rsadapter.spi.DatabaseHelper#getUpdateCount(java.sql.Statement)