public static function Connection::sqlFunctionLeast in Drupal 9
SQLite compatibility implementation for the LEAST() SQL function.
File
- core/
lib/ Drupal/ Core/ Database/ Driver/ sqlite/ Connection.php, line 254
Class
- Connection
- SQLite implementation of \Drupal\Core\Database\Connection.
Namespace
Drupal\Core\Database\Driver\sqliteCode
public static function sqlFunctionLeast() {
// Remove all NULL, FALSE and empty strings values but leaves 0 (zero) values.
$values = array_filter(func_get_args(), 'strlen');
return count($values) < 1 ? NULL : min($values);
}