From adc5c485ede3c99ec615982ce81ad0840841b119 Mon Sep 17 00:00:00 2001 From: "varga%netscape.com" Date: Tue, 8 Jul 2003 20:38:33 +0000 Subject: [PATCH] Updating sqltest to the latest API. Not part of build. --- extensions/sql/sqltest/sqltest.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/sql/sqltest/sqltest.js b/extensions/sql/sqltest/sqltest.js index 8f1f5d853aa..10011076fcc 100644 --- a/extensions/sql/sqltest/sqltest.js +++ b/extensions/sql/sqltest/sqltest.js @@ -1,4 +1,4 @@ -const alias = "urn:aliases:sqltest"; +const aliasName = "sqltest"; const complete = Components.interfaces.mozISqlRequest.STATUS_COMPLETE; var connection; @@ -53,7 +53,8 @@ function init() { var service = Components.classes["@mozilla.org/sql/service;1"] .getService(Components.interfaces.mozISqlService); - if (!service.hasAlias(alias)) { + var alias = service.getAlias(aliasName); + if (!alias) { alert("The alias for the sqltest was not defined."); return; }