@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.
@@ -705,7 +705,7 @@
705
705
  console.log(p.types[i] + " " + String(p.values[i]));
706
706
  }
707
707
  };
708
- UtilityService.prototype.calcolda_diff_doc = function (old_doc, new_doc) {
708
+ UtilityService.prototype.get_diff_doc = function (old_doc, new_doc) {
709
709
  if (old_doc === void 0) { old_doc = null; }
710
710
  if (new_doc === void 0) { new_doc = null; }
711
711
  var diff1 = [];
@@ -724,7 +724,7 @@
724
724
  if (new_doc === void 0) { new_doc = null; }
725
725
  var diff = null;
726
726
  if (old_doc != null && new_doc != null)
727
- diff = this.calcolda_diff_doc(old_doc, new_doc);
727
+ diff = this.get_diff_doc(old_doc, new_doc);
728
728
  var p = new QParam();
729
729
  if (diff != null || link != null) {
730
730
  p.sql = "INSERT_LOG_N2";
@@ -985,6 +985,16 @@
985
985
  }
986
986
  if (queryp.types[i] == 'string' && queryp.values[i] == null)
987
987
  queryp.values[i] = 'dbnull';
988
+ if (queryp.types[i] == 'decimal') {
989
+ if (queryp.values[i] + '' == '')
990
+ queryp.values[i] = 'dbnull';
991
+ else {
992
+ if (isNaN(queryp.values[i]))
993
+ queryp.values[i] = '0';
994
+ else
995
+ queryp.values[i] = '' + queryp.values[i];
996
+ }
997
+ }
988
998
  }
989
999
  }
990
1000
  //console.log('queryp after ',queryp);