sql-typechecker 0.0.32 → 0.0.33

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
@@ -242906,6 +242906,33 @@ 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
+ } else {
242926
+ return unifyOverloadedCall(e, [argTypes[0]], [
242927
+ {expectedArgs: [BuiltinTypes.Integer], returnT: BuiltinTypes.Text},
242928
+ {expectedArgs: [BuiltinTypes.Interval], returnT: BuiltinTypes.Text},
242929
+ {
242930
+ expectedArgs: [BuiltinTypes.Timestamp],
242931
+ returnT: BuiltinTypes.Text
242932
+ }
242933
+ ]);
242934
+ }
242935
+ }
242909
242936
  if (eqQNames(e.function, {name: "nextval"})) {
242910
242937
  return unifyCallGeneral(e, argTypes, [BuiltinTypes.Text], BuiltinTypes.Bigint);
242911
242938
  }