function DatabaseConnection_sqlite::sqlFunctionIf
SQLite compatibility implementation for the IF() SQL function.
File
-
includes/
database/ sqlite/ database.inc, line 173
Class
- DatabaseConnection_sqlite
- Specific SQLite implementation of DatabaseConnection.
Code
public function sqlFunctionIf($condition, $expr1, $expr2 = NULL) {
return $condition ? $expr1 : $expr2;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.