alsmanager_lib 2.0.87 → 2.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules.js +4 -4
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -11284,18 +11284,18 @@ function existConnectionTemplateMySQL(dev_model, dev_manifacturer, dev_type) {
|
|
|
11284
11284
|
query += "where device_type = :dev_type and device_manifacturer = :dev_manifacturer and device_model = :dev_model";
|
|
11285
11285
|
return query;
|
|
11286
11286
|
}
|
|
11287
|
-
function existConnectionTemplate(dev_model, dev_manifacturer, dev_type) {
|
|
11287
|
+
function existConnectionTemplate(db_used, dev_model, dev_manifacturer, dev_type) {
|
|
11288
11288
|
var query = "";
|
|
11289
11289
|
if (db_used) {
|
|
11290
11290
|
switch (db_used) {
|
|
11291
11291
|
case 'SQLITE':
|
|
11292
|
-
query = existConnectionTemplateSQLite(
|
|
11292
|
+
query = existConnectionTemplateSQLite(dev_model, dev_manifacturer, dev_type);
|
|
11293
11293
|
break;
|
|
11294
11294
|
case 'MYSQL':
|
|
11295
|
-
query = existConnectionTemplateMySQL(
|
|
11295
|
+
query = existConnectionTemplateMySQL(dev_model, dev_manifacturer, dev_type);
|
|
11296
11296
|
break;
|
|
11297
11297
|
case 'MYSQL2':
|
|
11298
|
-
query = existConnectionTemplateSQLite(
|
|
11298
|
+
query = existConnectionTemplateSQLite(dev_model, dev_manifacturer, dev_type);
|
|
11299
11299
|
break;
|
|
11300
11300
|
}
|
|
11301
11301
|
}
|