fixed SQL query
This commit is contained in:
1 parent
4cf568a785
commit
a2e30d601a
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user