mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2025-07-30 17:57:13 +02:00
ensure we don't pass null to trim during ensureGroupByOrAggregate
This commit is contained in:
@ -267,11 +267,11 @@ class SelectSQLRewriter extends AbstractSQLRewriter
|
||||
return $sql;
|
||||
}
|
||||
|
||||
$selectClause = trim($matches[2]) ?? '';
|
||||
$fromClause = trim($matches[4]) ?? '';
|
||||
$whereClause = trim($matches[5]) ?? '';
|
||||
$orderClause = trim($matches[6]) ?? '';
|
||||
$limitClause = trim($matches[7]) ?? '';
|
||||
$selectClause = trim($matches[2] ?? '');
|
||||
$fromClause = trim($matches[4] ?? '');
|
||||
$whereClause = trim($matches[5] ?? '');
|
||||
$orderClause = trim($matches[6] ?? '');
|
||||
$limitClause = trim($matches[7] ?? '');
|
||||
|
||||
if (empty($selectClause) || empty($fromClause)) {
|
||||
return $sql;
|
||||
|
Reference in New Issue
Block a user