Bug 682027 - Make returned fields in XPIProvider.getVisibleAddons consistent; r=Mossop

This commit is contained in:
Gregory Szorc 2011-08-26 12:40:57 -07:00
parent 7d57b6f306
commit 0fad58b24b

View File

@ -4947,7 +4947,8 @@ var XPIDatabase = {
stmt = this.getStatement("getVisibleAddons");
}
else {
let sql = "SELECT * FROM addon WHERE visible=1 AND type IN (";
let sql = "SELECT " + FIELDS_ADDON + " FROM addon WHERE visible=1 AND " +
"type IN (";
for (let i = 1; i <= aTypes.length; i++) {
sql += "?" + i;
if (i < aTypes.length)