sql-typechecker 0.0.62 → 0.0.64
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 +4 -0
- package/out/cli.js.map +2 -2
- package/package.json +2 -2
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 {
|