src: fixed typo in sql refactoring

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2017-08-11 19:44:36 +02:00
parent 63e21aa7d1
commit 7e67db16ae

View File

@ -72,7 +72,7 @@ uint64 get_metaid_by_messageid(struct session_data *sdata, struct data *data, ch
if(prepare_sql_statement(sdata, &sql, SQL_PREPARED_STMT_GET_META_ID_BY_MESSAGE_ID) == ERR) return id;
p_bind_init(&sql);
data->sql[data->pos] = message_id; data->type[data->pos] = TYPE_STRING; data->pos++;
sql.sql[sql.pos] = message_id; sql.type[sql.pos] = TYPE_STRING; sql.pos++;
if(p_exec_stmt(sdata, &sql) == OK){