diff --git a/toolkit/mozapps/extensions/XPIProvider.jsm b/toolkit/mozapps/extensions/XPIProvider.jsm index 7a622c08b0d..562b49dfb57 100644 --- a/toolkit/mozapps/extensions/XPIProvider.jsm +++ b/toolkit/mozapps/extensions/XPIProvider.jsm @@ -4564,7 +4564,7 @@ var XPIDatabase = { // Note that binding to index 0 sets the value for the ?1 parameter stmt = this.getStatement("getVisibleAddons_" + aTypes.length, sql); for (let i = 0; i < aTypes.length; i++) - stmt.bindStringParameter(i, aTypes[i]); + stmt.bindByIndex(i, aTypes[i]); } stmt.executeAsync(new AsyncAddonListCallback(aCallback)); @@ -4633,7 +4633,7 @@ var XPIDatabase = { stmt = this.getStatement("getVisibleAddonsWithPendingOperations_" + aTypes.length, sql); for (let i = 0; i < aTypes.length; i++) - stmt.bindStringParameter(i, aTypes[i]); + stmt.bindByIndex(i, aTypes[i]); } stmt.executeAsync(new AsyncAddonListCallback(aCallback));