sql-typechecker 0.0.37 → 0.0.38

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
@@ -243033,7 +243033,7 @@ function elabCall(g, c, e) {
243033
243033
  ]);
243034
243034
  }
243035
243035
  if (eqQNames(e.function, {name: "max"}) || eqQNames(e.function, {name: "min"})) {
243036
- return unifyOverloadedCall(e, argTypes, allNumericBuiltinTypes.map((t) => ({expectedArgs: [t], returnT: t})));
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
243039
  return unifyCallGeneral(e, argTypes, [BuiltinTypes.AnyScalar], BuiltinTypes.Bigint);