Skip to content

Query with #### or ---- #210

@rabbitone

Description

@rabbitone

Querying a "%%%%" or "----"

            $query = (new SphinxQL($cl))
                ->select('id')
                ->from(['dindex'])
                ->match('body', $this->search_query)
                ->limit(10);

generates an sql like this
SELECT id FROM dindex WHERE MATCH('(@body %%%%)')
SELECT id FROM dindex WHERE MATCH('(@body \\\\-\\\\-\\\\-\\\\-)')

Throws SQL Error
Error SQL (1064): index dindex: syntax error, unexpected ')' near ' %%%%)'

Is this ok?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions