You are here

public function DatabaseConnection_sqlite::sqlFunctionIf in Drupal 7

SQLite compatibility implementation for the IF() SQL function.

File

includes/database/sqlite/database.inc, line 173
Database interface code for SQLite embedded database engine.

Class

DatabaseConnection_sqlite
Specific SQLite implementation of DatabaseConnection.

Code

public function sqlFunctionIf($condition, $expr1, $expr2 = NULL) {
  return $condition ? $expr1 : $expr2;
}