remove all not just first result

This commit is contained in:
Nikola Petrov 2025-02-06 00:08:28 +01:00
parent 2dd7500ec2
commit c8b68ae030

View File

@ -105,7 +105,7 @@ void checker()
sql::bind_int64(get_user_table_id_stmt, 1, data.id);
sql::bind_int64(get_user_table_id_stmt, 2, data.generation);
int64_t user_table_id = 0;
if (sql::step(get_user_table_id_stmt) != SQL_DONE)
while (sql::step(get_user_table_id_stmt) != SQL_DONE)
{
int type = sql::column_type(get_user_table_id_stmt, 0);
if (type != SQL_NULL)