nck-2 / test-rep

0 stars 0 forks source link

Make possible to batch `Call PQ` with `show meta` in sphinxql #1287

Closed githubmanticore closed 1 year ago

githubmanticore commented 1 year ago

We have such multistatements working for select show something (status, meta, warnings).

During one session of CLI that is not the problem to fire two command one after another.
However in some situation it is inappropriate. For example, .NET connector uses connection pool, so that call pq may come via one connection, and then show meta on another, and will fail to display correct data because of it. Also, API 'sphinxql' call incapsulates sphinxql into one string, and do the call one-shoot. For selects we have multistatements just especially for the case; for call pq - not.

It would be good to make it also working for call pq as well, since it is the same kind of call as select.
Since originally general call was specified as call pq for this purpose, now we have to deal with specific one case of call to solve it.
However it is need to consider, if it is ok to have show something to work with any kind of call, not specifically with call pq only (it will both, make things simpler and may provide benefits to another call flavours.