зеркало из https://github.com/mozilla/pjs.git
Use new mozstorage .finalise^H^Hze method b=394736 r=sdwilsh sr=jag
This commit is contained in:
Родитель
dd67946a77
Коммит
8988b24fbd
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче