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

This commit is contained in:
neil%parkwaycc.co.uk 2007-09-24 08:51:44 +00:00
Родитель dd67946a77
Коммит 8988b24fbd
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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.