public function DatabaseConnection_sqlite::sqlFunctionSubstring

public DatabaseConnection_sqlite::sqlFunctionSubstring($string, $from, $length)

SQLite compatibility implementation for the SUBSTRING() SQL function.

File

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);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!sqlite!database.inc/function/DatabaseConnection_sqlite::sqlFunctionSubstring/7.x