Skip to content

Commit

Permalink
Merge pull request #109 from rrb3942/shutdown_segfault
Browse files Browse the repository at this point in the history
Reset prepared statement between query lists on shutdown
  • Loading branch information
bogdan-iancu committed Oct 23, 2013
1 parent aaef9b5 commit 857ae19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions db/db_insertq.c
Expand Up @@ -125,6 +125,10 @@ void flush_query_list(void)
}

it->dbf.use_table(it->conn,&it->table);

//Reset prepared statement between query lists/connections
my_ps = NULL;

CON_PS_REFERENCE(it->conn) = &my_ps;

/* and let's insert the rows */
Expand Down

0 comments on commit 857ae19

Please sign in to comment.