diff --git a/Database/Driver/PostgresQuery.php b/Database/Driver/PostgresQuery.php index 15964b7..85d835d 100644 --- a/Database/Driver/PostgresQuery.php +++ b/Database/Driver/PostgresQuery.php @@ -93,12 +93,12 @@ protected function _prepare($sql) // Get the pkey field name $pkRes = $resource->prepare( - "SELECT a.attname + 'SELECT a.attname FROM pg_index i JOIN pg_attribute a ON a.attrelid = i.indrelid AND a.attnum = ANY(i.indkey) WHERE i.indrelid = (:tableName)::regclass - AND i.indisprimary" + AND i.indisprimary' ); $pkRes->bindValue('tableName', $table[0]); $pkRes->execute(); diff --git a/Database/Query.php b/Database/Query.php index f5fb579..63bf004 100644 --- a/Database/Query.php +++ b/Database/Query.php @@ -1010,7 +1010,7 @@ protected function _build_where() if ($this->_where[$i - 1]['group'] === '(') { $condition .= '1=1'; } - // else nothing + // else nothing reindent once https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7497 is fixed } elseif ($this->_where[$i - 1]['group'] === '(') { // Nothing } else { diff --git a/Editor.php b/Editor.php index 73bb38e..b8c8b52 100644 --- a/Editor.php +++ b/Editor.php @@ -1533,7 +1533,7 @@ private function _fileDataFields(&$files, $fields, $limitTable, $idsIn = null, $ if ($fileData !== null) { if (isset($files[$table])) { - $files[$table] = $files[$table] + $fileData; + $files[$table] += $fileData; } else { $files[$table] = $fileData; }