cancelStatement method

bool cancelStatement(
  1. int stmtId
)
inherited

Cancels a prepared statement execution.

The stmtId must be a valid prepared statement identifier.

Not implemented end-to-end: the native odbc_cancel entry point is a stub that returns SQLSTATE 0A000 / native code 5001. Higher layers (IOdbcService.cancelStatement) map that to UnsupportedFeatureError. Prefer connection queryTimeout for reliable interruption.

Returns true only on a successful cancel (currently never for the stub); false on failure or unsupported feature.

Implementation

bool cancelStatement(int stmtId) {
  return _bindings.odbc_cancel(stmtId) == 0;
}