Use prepare_sphx_statement() for rt index

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2022-12-29 07:00:15 +01:00
parent 8b94398677
commit 092301e6a6

View File

@ -32,7 +32,7 @@ int store_index_data(struct session_data *sdata, struct parser_state *state, str
if(cfg->rtindex){
if(prepare_sql_statement(sdata, &sql, SQL_PREPARED_STMT_INSERT_INTO_RT_TABLE) == ERR) return rc;
if(prepare_sphx_statement(sdata, &sql, SQL_PREPARED_STMT_INSERT_INTO_RT_TABLE) == ERR) return rc;
} else {
if(prepare_sql_statement(sdata, &sql, SQL_PREPARED_STMT_INSERT_INTO_SPHINX_TABLE) == ERR) return rc;
}