public function DatabaseConnection_sqlite::sqlFunctionGreatest in Drupal 7
SQLite compatibility implementation for the GREATEST() SQL function.
File
- includes/
database/ sqlite/ database.inc, line 180 - Database interface code for SQLite embedded database engine.
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;
}
}