
If the statement had completed, it would likely have been dropped and the property value would have been cleared.

If sa_conn_activity reports a non-empty value for a connection, it is most likely the statement that the connection is currently executing. Only one statement string is remembered for each connection. The LastStatement value is set when a statement is prepared, and is cleared when a statement is dropped. LastStatement Returns the most recently prepared SQL statement for the current connection. You control the remembering of the last plan by setting the RememberLastPlan option of the sa_server_option system procedure, or using the -zp server option. LastPlanText Returns the long text plan of the last query executed on the connection.

Here's how the SQL Anywhere 16 Help describes the LastPlanText and LastStatement connection properties:

SQL Anywhere Linux OnDemand ODBC Drivers for MobiLink
