Bug 490833 - mozIStorageStatement::getParameterIndex should only accept :-named parameters

This change makes the XUL template builder work with the API change.
r=enn
This commit is contained in:
Shawn Wilsher 2009-05-12 17:08:49 -04:00
parent aaaa6a101b
commit c113205dde

View File

@ -330,10 +330,8 @@ nsXULTemplateQueryProcessorStorage::CompileQuery(nsIXULTemplateBuilder* aBuilder
nsAutoString name, indexValue;
if (child->GetAttr(kNameSpaceID_None, nsGkAtoms::name, name)) {
nsAutoString fullName;
fullName.AssignLiteral(":");
fullName.Append(name);
rv = statement->GetParameterIndex(NS_ConvertUTF16toUTF8(fullName) , &index);
rv = statement->GetParameterIndex(NS_ConvertUTF16toUTF8(name),
&index);
NS_ENSURE_SUCCESS(rv, rv);
parameterCount++;
}