function Connection::sqlFunctionGreatest
SQLite compatibility implementation for the GREATEST() SQL function.
1 call to Connection::sqlFunctionGreatest()
- Connection::open in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Connection.php - Opens a client connection.
File
-
core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Connection.php, line 269
Class
- Connection
- SQLite implementation of \Drupal\Core\Database\Connection.
Namespace
Drupal\sqlite\Driver\Database\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;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.