Ensure UNLINK is correct where we're only unlinked related documents.

This commit is contained in:
alexhudson
2010-08-21 17:00:36 +00:00
parent d8f7131a08
commit 75528e690f
+1 -1
View File
@@ -118,7 +118,7 @@ SOQuery_Unlink(StoreClient *client, uint64_t document, uint64_t related, BOOL an
} else if (document) {
query = "DELETE FROM links WHERE doc_guid=?1";
} else {
query = "DELETE FROM links WHERE related_guid=?2";
query = "DELETE FROM links WHERE related_guid=?1";
}
ret = MsgSQLPrepare(client->storedb, query, &stmt);