sql-typechecker 0.0.46 → 0.0.47

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/out/cli.js CHANGED
@@ -243036,7 +243036,7 @@ function elabCall(g, c, e) {
243036
243036
  return unifyOverloadedCall(e, argTypes, allNumericBuiltinTypes.concat([BuiltinTypes.Date, BuiltinTypes.Time, BuiltinTypes.Timestamp]).map((t) => ({expectedArgs: [t], returnT: t})));
243037
243037
  }
243038
243038
  if (eqQNames(e.function, {name: "count"})) {
243039
- return unifyCallGeneral(e, argTypes, [BuiltinTypes.AnyScalar], BuiltinTypes.Bigint);
243039
+ return BuiltinTypes.Bigint;
243040
243040
  }
243041
243041
  if (eqQNames(e.function, {name: "coalesce"}) || eqQNames(e.function, {name: "nullif"})) {
243042
243042
  if (e.args.length === 0) {
@@ -243399,7 +243399,7 @@ function genDeserializeSimpleT(t, literalVar) {
243399
243399
  if (inner === literalVar) {
243400
243400
  return inner;
243401
243401
  } else {
243402
- return `${literalVar} === null ? (${inner}) : null`;
243402
+ return `${literalVar} === null ? null : (${inner})`;
243403
243403
  }
243404
243404
  } else if (t.kind === "anyscalar") {
243405
243405
  return literalVar;