fixed SQL query
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 13 Jun 2013 12:17:47 +0000 (14:17 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 21 Jun 2013 21:25:24 +0000 (23:25 +0200)
src/libpts/pts/pts_database.c

index 905751b..e5a06cc 100644 (file)
@@ -161,7 +161,7 @@ METHOD(pts_database_t, add_file_measurement, status_t,
                /* does filename entry already exist? */
                e = this->db->query(this->db,
                                "SELECT id FROM files WHERE name = ? AND dir = ?",
-                                DB_TEXT, filename, DB_INT, id);
+                                DB_TEXT, filename, DB_INT, id, DB_INT);
                if (!e)
                {
                        return FAILED;