alsmanager_lib 3.0.217 → 3.0.219
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 +12 -0
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -12213,11 +12213,17 @@ function insertConnectionSetSQLite(id_set, id_conn, verse, id_adapter, lunghezza
|
|
|
12213
12213
|
if (date_start) {
|
|
12214
12214
|
dt_start_str = convertDateToStringDB(date_start);
|
|
12215
12215
|
}
|
|
12216
|
+
var in_canaletta_sw = 0;
|
|
12217
|
+
if (in_canaletta) {
|
|
12218
|
+
in_canaletta_sw = in_canaletta;
|
|
12219
|
+
}
|
|
12216
12220
|
var query = "insert into set_connections (id_set, id_conn, id_adapter, verse, lunghezza_cm, in_canaletta, date_start, date_end) values ";
|
|
12217
12221
|
query += "(" + id_set + ", ";
|
|
12218
12222
|
query += id_conn + ", ";
|
|
12219
12223
|
query += id_adapter + ", ";
|
|
12220
12224
|
query += "'" + verse + "', ";
|
|
12225
|
+
query += lunghezza_cm + ", ";
|
|
12226
|
+
query += in_canaletta_sw + ", ";
|
|
12221
12227
|
query += "'" + dt_start_str + "', ";
|
|
12222
12228
|
query += "'2999-12-31'"
|
|
12223
12229
|
query += ")";
|
|
@@ -12228,11 +12234,17 @@ function insertConnectionSetMySQL(id_set, id_conn, verse, id_adapter, lunghezza_
|
|
|
12228
12234
|
if (date_start) {
|
|
12229
12235
|
dt_start_str = convertDateToStringDB(date_start);
|
|
12230
12236
|
}
|
|
12237
|
+
var in_canaletta_sw = 0;
|
|
12238
|
+
if (in_canaletta) {
|
|
12239
|
+
in_canaletta_sw = in_canaletta;
|
|
12240
|
+
}
|
|
12231
12241
|
var query = "insert into set_connections (id_set, id_conn, id_adapter, verse, lunghezza_cm, in_canaletta, date_start, date_end) values ";
|
|
12232
12242
|
query += "(:id_set, ";
|
|
12233
12243
|
query += ":id_conn, ";
|
|
12234
12244
|
query += ":id_adapter, ";
|
|
12235
12245
|
query += ":verse, ";
|
|
12246
|
+
query += ":lunghezza_cm, ";
|
|
12247
|
+
query += in_canaletta_sw + ", ";
|
|
12236
12248
|
query += "'" + dt_start_str + "', ";
|
|
12237
12249
|
query += "'2999-12-31'"
|
|
12238
12250
|
query += ")";
|