X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3ea1b35b3243e4e2d061a207460b009883522d24..c71cb63f38cacb217755ecf40c4b7a60794676c6:/nominatim/export.c diff --git a/nominatim/export.c b/nominatim/export.c index 8051c183..9a2f57ad 100644 --- a/nominatim/export.c +++ b/nominatim/export.c @@ -367,7 +367,7 @@ void nominatim_exportPlace(uint64_t place_id, PGconn * conn, // Add, modify or delete? if (prevQuerySet) { - if ((PQgetvalue(prevQuerySet->res, 0, 14) && strcmp(PQgetvalue(prevQuerySet->res, 0, 14), "100") == 0) || PQntuples(querySet.res)) + if ((PQgetvalue(prevQuerySet->res, 0, 14) && strcmp(PQgetvalue(prevQuerySet->res, 0, 14), "100") == 0) || PQntuples(querySet.res) == 0) { // Delete if (writer_mutex) pthread_mutex_lock( writer_mutex );