Use new mozstorage .finalise^H^Hze method b=394736 r=sdwilsh sr=jag

git-svn-id: svn://10.0.0.236/trunk@236545 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk 2007-09-24 08:51:44 +00:00
parent 9ccebfce29
commit 8649270f51
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ function createUBHistoryMenu( aParent )
aParent.appendChild(document.createElement("menuitem"))
.setAttribute("label", statement.getString(0));
statement.reset();
statement.initialize(connection, null);
statement.finalize();
return;
}
} finally {

View File

@ -283,14 +283,14 @@
"DELETE FROM urlbarhistory WHERE LOWER(url) = LOWER(?1)");
statement.bindStringParameter(0, aUrlToAdd);
statement.execute();
statement.initialize(connection, null);
statement.finalize();
// Put the value as it was typed by the user in to urlbar history
statement = connection.createStatement(
"INSERT INTO urlbarhistory (url) VALUES (?1)");
statement.bindStringParameter(0, aUrlToAdd);
statement.execute();
statement.initialize(connection, null);
statement.finalize();
// Remove any expired history items so that we don't let
// this grow without bound.