You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sphinx server only support a subset of MySql command
enum
{
MYSQL_COM_QUIT = 1,
MYSQL_COM_INIT_DB = 2,
MYSQL_COM_QUERY = 3,
MYSQL_COM_PING = 14,
MYSQL_COM_SET_OPTION = 27
};
(sphinx-2.1.1-beta/src/searchd.cpp)
So it doesn't support MYSQL_COM_STMT_PREPARE, but
database/sql.DB.Query() always
call Prepare() to get a Stmt object, that would cause "unknown command"
error from Sphinx server.
There is a lib should solve this problem: https://github.com/go-sql-driver/sphinxql, but unfortunately it has some
problem, I can't use it in "sphinx" lib. So for now, you can only use
sphinx api to do SELECT operations, thanks.
Will there be a way of SELECTing rows via SphinxQL?
The text was updated successfully, but these errors were encountered: