public function Connection::sqlFunctionIf

SQLite compatibility implementation for the IF() SQL function.

File

drupal/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 161
Definition of Drupal\Core\Database\Driver\sqlite\Connection

Class

Connection
Specific SQLite implementation of DatabaseConnection.

Namespace

Drupal\Core\Database\Driver\sqlite

Code

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