mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
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:
parent
aaaa6a101b
commit
c113205dde
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user