src/Db/Pgsql/QueryBuilder.php
public function update($table, $columns, $condition, &$params)
    {
        $columns = $this->normalizeTableRowData($table, $columns);
        $pk = $this->getTablePrimaryKey($table);
        list($lines, $params) = $this->prepareUpdateSets($table, $columns, $params);
        $sql = 'UPDATE ' . $this->db->quoteTableName($table) . ' SET ' . implode(', ', $lines);
        $where = $this->buildWhere($condition, $params);
        $sql = $where === '' ? $sql : $sql . ' ' . $where;
        $sql .= isset($pk) ? " RETURNING " . $this->db->quoteColumnName($pk) : " RETURNING *";
        return $sql;
    }
public function update($table, $columns, $condition, &$params)
    {
        $columns = $this->normalizeTableRowData($table, $columns);
        $pk = $this->getTablePrimaryKey($table);
        list($lines, $params) = $this->prepareUpdateSets($table, $columns, $params);
        $sql = 'UPDATE ' . $this->db->quoteTableName($table) . ' SET ' . implode(', ', $lines);
        $where = $this->buildWhere($condition, $params);
        $sql = $where === '' ? $sql : $sql . ' ' . $where;
        $sql .= isset($pk) ? " RETURNING " . $this->db->quoteColumnName($pk) : " RETURNING *";
        return $sql;
    }
{@inheritdoc}