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:
parent
9ccebfce29
commit
8649270f51
@ -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 {
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user