COALESCE function, null, true, false

This commit is contained in:
yuri
2019-02-15 12:20:23 +02:00
parent a5941e472e
commit 0aab014af1
2 changed files with 15 additions and 0 deletions
+4
View File
@@ -136,12 +136,14 @@ abstract class Base
'FLOOR',
'CEIL',
'ROUND',
'COALESCE',
];
protected $multipleArgumentsFunctionList = [
'CONCAT',
'TZ',
'ROUND',
'COALESCE',
];
protected $matchFunctionList = ['MATCH_BOOLEAN', 'MATCH_NATURAL_LANGUAGE', 'MATCH_QUERY_EXPANSION'];
@@ -582,6 +584,8 @@ abstract class Base
} else if (is_numeric($argument)) {
$string = $this->quote($argument);
return $string;
} else if (in_array(strtoupper($argument), ['NULL', 'TRUE', 'FALSE'])) {
return strtoupper($argument);
}
if (strpos($argument, ':')) {