[libchamplain] Reset the update prepared statement before each execution



commit 3890fb3c4ae80d40751bb8b332f8174603673966
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date:   Sun Feb 21 18:30:43 2010 +0100

    Reset the update prepared statement before each execution

 champlain/champlain-file-cache.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/champlain/champlain-file-cache.c b/champlain/champlain-file-cache.c
index c5eb1af..d671b79 100644
--- a/champlain/champlain-file-cache.c
+++ b/champlain/champlain-file-cache.c
@@ -883,6 +883,7 @@ on_tile_filled (ChamplainTileCache *tile_cache,
   filename = get_filename (file_cache, tile);
 
   DEBUG ("popularity of %s", filename);
+  sqlite3_reset (priv->stmt_update);
 
   sql_rc = sqlite3_bind_text (priv->stmt_update, 1, filename, -1, SQLITE_STATIC);
   if (sql_rc != SQLITE_OK)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]