sql-typechecker 0.0.36 → 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 +9 -1
- package/out/cli.js.map +2 -2
- package/package.json +1 -1
package/out/cli.js
CHANGED
|
@@ -242909,6 +242909,14 @@ function elabCall(g, c, e) {
|
|
|
242909
242909
|
throw new InvalidArguments(e, e.function, argTypes);
|
|
242910
242910
|
}
|
|
242911
242911
|
}
|
|
242912
|
+
if (eqQNames(e.function, {name: "trim"})) {
|
|
242913
|
+
return unifyOverloadedCall(e, argTypes, [
|
|
242914
|
+
{
|
|
242915
|
+
expectedArgs: [BuiltinTypes.Text],
|
|
242916
|
+
returnT: BuiltinTypes.Text
|
|
242917
|
+
}
|
|
242918
|
+
]);
|
|
242919
|
+
}
|
|
242912
242920
|
if (eqQNames(e.function, {name: "generate_series"})) {
|
|
242913
242921
|
return unifyOverloadedCall(e, argTypes, [
|
|
242914
242922
|
{
|
|
@@ -243025,7 +243033,7 @@ function elabCall(g, c, e) {
|
|
|
243025
243033
|
]);
|
|
243026
243034
|
}
|
|
243027
243035
|
if (eqQNames(e.function, {name: "max"}) || eqQNames(e.function, {name: "min"})) {
|
|
243028
|
-
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})));
|
|
243029
243037
|
}
|
|
243030
243038
|
if (eqQNames(e.function, {name: "count"})) {
|
|
243031
243039
|
return unifyCallGeneral(e, argTypes, [BuiltinTypes.AnyScalar], BuiltinTypes.Bigint);
|