@fluxhub/fluxhub-lib 9.0.129 → 9.0.131
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/bundles/fluxhub-fluxhub-lib.umd.js +12 -2
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/services/doquery.service.js +11 -1
- package/esm2015/lib/services/utility.service.js +3 -3
- package/esm5/lib/services/doquery.service.js +11 -1
- package/esm5/lib/services/utility.service.js +3 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +12 -2
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +12 -2
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/services/utility.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -573,7 +573,7 @@ var UtilityService = /** @class */ (function () {
|
|
|
573
573
|
console.log(p.types[i] + " " + String(p.values[i]));
|
|
574
574
|
}
|
|
575
575
|
};
|
|
576
|
-
UtilityService.prototype.
|
|
576
|
+
UtilityService.prototype.get_diff_doc = function (old_doc, new_doc) {
|
|
577
577
|
if (old_doc === void 0) { old_doc = null; }
|
|
578
578
|
if (new_doc === void 0) { new_doc = null; }
|
|
579
579
|
var diff1 = [];
|
|
@@ -592,7 +592,7 @@ var UtilityService = /** @class */ (function () {
|
|
|
592
592
|
if (new_doc === void 0) { new_doc = null; }
|
|
593
593
|
var diff = null;
|
|
594
594
|
if (old_doc != null && new_doc != null)
|
|
595
|
-
diff = this.
|
|
595
|
+
diff = this.get_diff_doc(old_doc, new_doc);
|
|
596
596
|
var p = new QParam();
|
|
597
597
|
if (diff != null || link != null) {
|
|
598
598
|
p.sql = "INSERT_LOG_N2";
|
|
@@ -853,6 +853,16 @@ var QueryService = /** @class */ (function () {
|
|
|
853
853
|
}
|
|
854
854
|
if (queryp.types[i] == 'string' && queryp.values[i] == null)
|
|
855
855
|
queryp.values[i] = 'dbnull';
|
|
856
|
+
if (queryp.types[i] == 'decimal') {
|
|
857
|
+
if (queryp.values[i] + '' == '')
|
|
858
|
+
queryp.values[i] = 'dbnull';
|
|
859
|
+
else {
|
|
860
|
+
if (isNaN(queryp.values[i]))
|
|
861
|
+
queryp.values[i] = '0';
|
|
862
|
+
else
|
|
863
|
+
queryp.values[i] = '' + queryp.values[i];
|
|
864
|
+
}
|
|
865
|
+
}
|
|
856
866
|
}
|
|
857
867
|
}
|
|
858
868
|
//console.log('queryp after ',queryp);
|