sql-typechecker 0.0.32 → 0.0.34
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 +35 -0
- package/out/cli.js.map +2 -2
- package/package.json +1 -1
package/out/cli.js
CHANGED
|
@@ -242906,6 +242906,41 @@ function elabCall(g, c, e) {
|
|
|
242906
242906
|
throw new InvalidArguments(e, e.function, argTypes);
|
|
242907
242907
|
}
|
|
242908
242908
|
}
|
|
242909
|
+
if (eqQNames(e.function, {name: "to_char"})) {
|
|
242910
|
+
if (isNullable(argTypes[0])) {
|
|
242911
|
+
return nullify(unifyOverloadedCall(e, [unnullify(argTypes[0])], [
|
|
242912
|
+
{
|
|
242913
|
+
expectedArgs: [BuiltinTypes.Numeric],
|
|
242914
|
+
returnT: BuiltinTypes.Text
|
|
242915
|
+
},
|
|
242916
|
+
{
|
|
242917
|
+
expectedArgs: [BuiltinTypes.Interval],
|
|
242918
|
+
returnT: BuiltinTypes.Text
|
|
242919
|
+
},
|
|
242920
|
+
{
|
|
242921
|
+
expectedArgs: [BuiltinTypes.Timestamp],
|
|
242922
|
+
returnT: BuiltinTypes.Text
|
|
242923
|
+
},
|
|
242924
|
+
{
|
|
242925
|
+
expectedArgs: [BuiltinTypes.Date],
|
|
242926
|
+
returnT: BuiltinTypes.Text
|
|
242927
|
+
}
|
|
242928
|
+
]));
|
|
242929
|
+
} else {
|
|
242930
|
+
return unifyOverloadedCall(e, [argTypes[0]], [
|
|
242931
|
+
{expectedArgs: [BuiltinTypes.Integer], returnT: BuiltinTypes.Text},
|
|
242932
|
+
{expectedArgs: [BuiltinTypes.Interval], returnT: BuiltinTypes.Text},
|
|
242933
|
+
{
|
|
242934
|
+
expectedArgs: [BuiltinTypes.Timestamp],
|
|
242935
|
+
returnT: BuiltinTypes.Text
|
|
242936
|
+
},
|
|
242937
|
+
{
|
|
242938
|
+
expectedArgs: [BuiltinTypes.Date],
|
|
242939
|
+
returnT: BuiltinTypes.Text
|
|
242940
|
+
}
|
|
242941
|
+
]);
|
|
242942
|
+
}
|
|
242943
|
+
}
|
|
242909
242944
|
if (eqQNames(e.function, {name: "nextval"})) {
|
|
242910
242945
|
return unifyCallGeneral(e, argTypes, [BuiltinTypes.Text], BuiltinTypes.Bigint);
|
|
242911
242946
|
}
|