function Statement::getClientStatement

Returns the client-level database statement object.

This method should normally be used only within database driver code.

Return value

\mysqli_stmt The client-level database statement.

Overrides StatementBase::getClientStatement

File

core/modules/mysqli/src/Driver/Database/mysqli/Statement.php, line 60

Class

Statement
MySQLi implementation of \Drupal\Core\Database\Query\StatementInterface.

Namespace

Drupal\mysqli\Driver\Database\mysqli

Code

public function getClientStatement() : \mysqli_stmt {
  if ($this->hasClientStatement()) {
    assert($this->clientStatement instanceof \mysqli_stmt);
    return $this->clientStatement;
  }
  throw new \LogicException('\\mysqli_stmt not initialized');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.