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