From 4edccea15f9a5b406a9652b942bde89b74254526 Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Tue, 18 Jul 2006 16:35:08 +0000 Subject: [PATCH] Bug 328532 r=bryner Normalize annotation names in a separate table, migration code from alpha1. Original committer: brettw%gmail.com Original revision: 1.93 Original date: 2006/04/07 19:50:33 --- toolkit/components/places/src/nsNavHistory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/components/places/src/nsNavHistory.cpp b/toolkit/components/places/src/nsNavHistory.cpp index e438e206292..10df47d3dd6 100644 --- a/toolkit/components/places/src/nsNavHistory.cpp +++ b/toolkit/components/places/src/nsNavHistory.cpp @@ -3121,7 +3121,7 @@ nsNavHistory::QueryToSelectClause(nsNavHistoryQuery* aQuery, // const if (aQuery->AnnotationIsNot()) aClause->AppendLiteral("NOT "); - aClause->AppendLiteral("EXISTS (SELECT anno_id FROM moz_anno anno WHERE anno.page = h.id AND anno.name = "); + aClause->AppendLiteral("EXISTS (SELECT anno_id FROM moz_anno anno JOIN moz_anno_name annoname ON anno.name_id = annoname.name_id WHERE anno.page = h.id AND annoname.name = "); aClause->Append(paramString); aClause->AppendLiteral(") "); // annotation-based queries don't get the common conditions, so you get