function DatabaseConnection_sqlite::sqlFunctionSubstring

SQLite compatibility implementation for the SUBSTRING() SQL function.

File

includes/database/sqlite/database.inc, line 206

Class

DatabaseConnection_sqlite
Specific SQLite implementation of DatabaseConnection.

Code

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

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