fix: database types

This commit is contained in:
Tobias Reisinger 2020-04-19 02:44:35 +02:00
parent beea18f70b
commit b3f75f4004
10 changed files with 76 additions and 55 deletions

View file

@ -37,7 +37,7 @@ helpers::create_sql_filtered_query(const char *sql, sql_filter_builder **filters
if(filter->bind_func == (intptr_t)&sqlite3_bind_int)
{
sqlite3_bind_int(stmt, i + 1, (int)(intptr_t)filter->value);
sqlite3_bind_int(stmt, i + 1, *((int*)filter->value));
}
if(filter->bind_func == (intptr_t)&sqlite3_bind_text)
{