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
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 16:35:08 +00:00
Родитель f74373a20b
Коммит 4edccea15f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -3121,7 +3121,7 @@ nsNavHistory::QueryToSelectClause(nsNavHistoryQuery* aQuery, // const
if (aQuery->AnnotationIsNot()) if (aQuery->AnnotationIsNot())
aClause->AppendLiteral("NOT "); 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->Append(paramString);
aClause->AppendLiteral(") "); aClause->AppendLiteral(") ");
// annotation-based queries don't get the common conditions, so you get // annotation-based queries don't get the common conditions, so you get