sql-typechecker 0.0.61 → 0.0.63

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
@@ -241975,6 +241975,10 @@ function findMatchingCast(g, visited, from, to, type) {
241975
241975
  target: {kind: "scalar", name: d.name},
241976
241976
  type: "assignment"
241977
241977
  })));
241978
+ const foundDomainFrom = g.domains.find((d) => eqQNames(d.name, from.name));
241979
+ if (foundDomainFrom && foundDomainFrom.realtype.kind === "scalar" && eqQNames(foundDomainFrom.realtype.name, to.name)) {
241980
+ return {source: from, target: to, type: "implicit"};
241981
+ }
241978
241982
  if (eqQNames(from.name, to.name)) {
241979
241983
  return {source: from, target: to, type: "implicit"};
241980
241984
  } else {
@@ -242118,7 +242122,10 @@ function doCreateView(g, s) {
242118
242122
  })
242119
242123
  };
242120
242124
  }
242121
- function doAlterTable(_g, s) {
242125
+ function doAlterTable(g, s) {
242126
+ if (s.changes.every((c) => c.type === "add constraint" || c.type === "rename constraint" || c.type === "drop constraint" || c.type === "owner")) {
242127
+ return g;
242128
+ }
242122
242129
  return notImplementedYet(s);
242123
242130
  }
242124
242131
  function deriveNameFromExpr(expr) {