@fluxhub/fluxhub-lib 9.0.129 → 9.0.130

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.
@@ -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);