// Remove Tools::buildQuery
This commit is contained in:
@@ -2090,39 +2090,6 @@ FileETag INode MTime Size
|
||||
return (PHP_INT_MAX == '9223372036854775807');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array SQL query in array
|
||||
* @return string SQL query
|
||||
*/
|
||||
public static function buildQuery(array $sql)
|
||||
{
|
||||
if (!isset($sql['select']))
|
||||
$sql['select'] = 'SELECT *';
|
||||
|
||||
$req = $sql['select']."\n";
|
||||
$req .= $sql['from']."\n";
|
||||
|
||||
if (isset($sql['join']))
|
||||
$req .= $sql['join']."\n";
|
||||
|
||||
if (isset($sql['where']))
|
||||
$req .= $sql['where']."\n";
|
||||
|
||||
if (isset($sql['groupby']))
|
||||
$req .= $sql['groupby']."\n";
|
||||
|
||||
if (isset($sql['having']))
|
||||
$req .= $sql['having']."\n";
|
||||
|
||||
if (isset($sql['orderby']))
|
||||
$req .= $sql['orderby']."\n";
|
||||
|
||||
if (isset($sql['limit']))
|
||||
$req .= $sql['limit']."\n";
|
||||
|
||||
return $req;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get max file upload size considering server settings and optional max value
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user