public static function Connection::sqlFunctionGreatest in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php \Drupal\Core\Database\Driver\sqlite\Connection::sqlFunctionGreatest()
SQLite compatibility implementation for the GREATEST() SQL function.
File
- core/
lib/ Drupal/ Core/ Database/ Driver/ sqlite/ Connection.php, line 220
Class
- Connection
- SQLite implementation of \Drupal\Core\Database\Connection.
Namespace
Drupal\Core\Database\Driver\sqliteCode
public static function sqlFunctionGreatest() {
$args = func_get_args();
foreach ($args as $v) {
if (!isset($v)) {
unset($args);
}
}
if (count($args)) {
return max($args);
}
else {
return NULL;
}
}