Skip to content

select() #51

@EvanLoik

Description

@EvanLoik

I have another question.
Here is an example:

$firstQuery = (new SphinxQL($connection))->select(['id', 'name'])
->from('index_user');

$secondQuery = clone $firstQuery;
$count = $secondQuery->select(SphinxQL::expr('COUNT(*)'))->execute();
$items = $firstQuery->execute();

But this code will not work, because we have this line in select method:

$this->reset();

It is not very nice. Do you think it's necessary?
It would be great to be able to change select clause.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions