Statement::$paramsPositions

Holds the index position of named parameters.

The mysqli driver only allows positional placeholders '?', whereas in Drupal the SQL is generated with named placeholders ':name'. In order to execute the SQL, the string containing the named placeholders is converted to using positional ones, and the position (index) of each named placeholder in the string is stored here.

Type: paramsPositions

File

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

Class

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

Namespace

Drupal\mysqli\Driver\Database\mysqli

Code

protected array $paramsPositions;

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