function DatabaseConnection_sqlite::sqlFunctionGreatest
SQLite compatibility implementation for the GREATEST() SQL function.
File
-
includes/
database/ sqlite/ database.inc, line 180
Class
- DatabaseConnection_sqlite
- Specific SQLite implementation of DatabaseConnection.
Code
public function sqlFunctionGreatest() {
$args = func_get_args();
foreach ($args as $k => $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.