SQLite compatibility implementation for the SUBSTRING() SQL function.
File
- drupal/includes/database/sqlite/database.inc, line 182
- Database interface code for SQLite embedded database engine.
Class
- DatabaseConnection_sqlite
- Specific SQLite implementation of DatabaseConnection.
Code
public function sqlFunctionSubstring($string, $from, $length) {
return substr($string, $from - 1, $length);
}