You are here

public static function Connection::sqlFunctionSubstring in Drupal 10

SQLite compatibility implementation for the SUBSTRING() SQL function.

File

core/modules/sqlite/src/Driver/Database/sqlite/Connection.php, line 286

Class

Connection
SQLite implementation of \Drupal\Core\Database\Connection.

Namespace

Drupal\sqlite\Driver\Database\sqlite

Code

public static function sqlFunctionSubstring($string, $from, $length) {
  return substr($string, $from - 1, $length);
}