Trivial changes
This commit is contained in:
parent
2433b4377a
commit
1eed448800
|
@ -229,18 +229,17 @@ var App =
|
||||||
this.regWrite (Conf.dsPath, 'UID', user, 'REG_SZ');
|
this.regWrite (Conf.dsPath, 'UID', user, 'REG_SZ');
|
||||||
this.regWrite (Conf.dsPath, 'PWD', password, 'REG_SZ');
|
this.regWrite (Conf.dsPath, 'PWD', password, 'REG_SZ');
|
||||||
|
|
||||||
// Gets the last version number usign the MySQL ODBC connection
|
// Gets the last version number using the MySQL ODBC connection
|
||||||
|
|
||||||
var mysqlConn = new ActiveXObject ('ADODB.Connection');
|
var mysqlConn = new ActiveXObject ('ADODB.Connection');
|
||||||
|
|
||||||
var dbErrors = mysqlConn.errors;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
dbErrors.clear ();
|
|
||||||
mysqlConn.open (Conf.dsName);
|
mysqlConn.open (Conf.dsName);
|
||||||
}
|
}
|
||||||
catch (e)
|
catch (e)
|
||||||
{
|
{
|
||||||
|
var dbErrors = mysqlConn.errors;
|
||||||
|
|
||||||
if (dbErrors.count > 0)
|
if (dbErrors.count > 0)
|
||||||
{
|
{
|
||||||
var errorMsg;
|
var errorMsg;
|
||||||
|
|
Loading…
Reference in New Issue