From da6aba90a4665391be40b2580424d41346b17a0b Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Fri, 10 May 2019 10:57:12 +0100 Subject: [PATCH] fix: add missing comma to dc_get_locations sql --- src/dc_location.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dc_location.rs b/src/dc_location.rs index 0e7a0589e..03fe5db12 100644 --- a/src/dc_location.rs +++ b/src/dc_location.rs @@ -230,7 +230,7 @@ pub unsafe fn dc_get_locations( stmt = dc_sqlite3_prepare( context, &context.sql.clone().read().unwrap(), - b"SELECT l.id, l.latitude, l.longitude, l.accuracy, l.timestamp, l.independent \ + b"SELECT l.id, l.latitude, l.longitude, l.accuracy, l.timestamp, l.independent, \ m.id, l.from_id, l.chat_id, m.txt \ FROM locations l LEFT JOIN msgs m ON l.id=m.location_id WHERE (? OR l.chat_id=?) \ AND (? OR l.from_id=?) \