@snowtop/ent 0.1.24 → 0.1.25

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.
Files changed (2) hide show
  1. package/core/clause.js +7 -7
  2. package/package.json +1 -1
package/core/clause.js CHANGED
@@ -591,7 +591,7 @@ function ArrayNotEq(col, value) {
591
591
  exports.ArrayNotEq = ArrayNotEq;
592
592
  function Eq(col, value, overrideAlias) {
593
593
  return new simpleClause(col, value, "=", {
594
- handleNull: new isNullClause(col),
594
+ handleNull: new isNullClause(col, overrideAlias),
595
595
  overrideAlias,
596
596
  });
597
597
  }
@@ -870,7 +870,7 @@ exports.JSONPathValuePredicate = JSONPathValuePredicate;
870
870
  function JSONKeyExists(dbCol, val, overrideAlias) {
871
871
  return new simpleClause(dbCol, val, "?", {
872
872
  // TODO ola: does isNullClause make sense here???
873
- handleNull: new isNullClause(dbCol),
873
+ handleNull: new isNullClause(dbCol, overrideAlias),
874
874
  overrideAlias,
875
875
  });
876
876
  }
@@ -952,35 +952,35 @@ exports.PaginationMultipleColsQuery = PaginationMultipleColsQuery;
952
952
  // These 5 are used on the RHS of an expression
953
953
  function Add(col, value, overrideAlias) {
954
954
  return new simpleClause(col, value, "+", {
955
- handleNull: new isNullClause(col),
955
+ handleNull: new isNullClause(col, overrideAlias),
956
956
  overrideAlias,
957
957
  });
958
958
  }
959
959
  exports.Add = Add;
960
960
  function Subtract(col, value, overrideAlias) {
961
961
  return new simpleClause(col, value, "-", {
962
- handleNull: new isNullClause(col),
962
+ handleNull: new isNullClause(col, overrideAlias),
963
963
  overrideAlias,
964
964
  });
965
965
  }
966
966
  exports.Subtract = Subtract;
967
967
  function Multiply(col, value, overrideAlias) {
968
968
  return new simpleClause(col, value, "*", {
969
- handleNull: new isNullClause(col),
969
+ handleNull: new isNullClause(col, overrideAlias),
970
970
  overrideAlias,
971
971
  });
972
972
  }
973
973
  exports.Multiply = Multiply;
974
974
  function Divide(col, value, overrideAlias) {
975
975
  return new simpleClause(col, value, "/", {
976
- handleNull: new isNullClause(col),
976
+ handleNull: new isNullClause(col, overrideAlias),
977
977
  overrideAlias,
978
978
  });
979
979
  }
980
980
  exports.Divide = Divide;
981
981
  function Modulo(col, value, overrideAlias) {
982
982
  return new simpleClause(col, value, "%", {
983
- handleNull: new isNullClause(col),
983
+ handleNull: new isNullClause(col, overrideAlias),
984
984
  overrideAlias,
985
985
  });
986
986
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowtop/ent",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "snowtop ent framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",