function NamedPlaceholderConverter::addOther

Adds a generic SQL string fragment to the converted parts.

Parameters

string $sql: The SQL part.

1 call to NamedPlaceholderConverter::addOther()
NamedPlaceholderConverter::parse in core/modules/mysqli/src/Driver/Database/mysqli/NamedPlaceholderConverter.php
Parses an SQL statement with named placeholders.

File

core/modules/mysqli/src/Driver/Database/mysqli/NamedPlaceholderConverter.php, line 226

Class

NamedPlaceholderConverter
A class to convert a SQL statement with named placeholders to positional.

Namespace

Drupal\mysqli\Driver\Database\mysqli

Code

private function addOther(string $sql) : void {
  $this->convertedSQL[] = $sql;
}

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