sql-typechecker 0.0.60 → 0.0.62

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
@@ -242118,7 +242118,10 @@ function doCreateView(g, s) {
242118
242118
  })
242119
242119
  };
242120
242120
  }
242121
- function doAlterTable(_g, s) {
242121
+ function doAlterTable(g, s) {
242122
+ if (s.changes.every((c) => c.type === "add constraint" || c.type === "rename constraint" || c.type === "drop constraint" || c.type === "owner")) {
242123
+ return g;
242124
+ }
242122
242125
  return notImplementedYet(s);
242123
242126
  }
242124
242127
  function deriveNameFromExpr(expr) {
@@ -242146,7 +242149,7 @@ function elabSelect(g, c, s) {
242146
242149
  fields: fr.type.fields.map((fi) => {
242147
242150
  const foundNullabilityInference = inferredNullability.find((inf) => eqQNames(inf.fromName, fr.name) && inf.fieldName === fi.name?.name);
242148
242151
  if (foundNullabilityInference && isNullable(fi.type)) {
242149
- const t = foundNullabilityInference.isNull === true ? BuiltinTypes.Null : unnullify(fi.type);
242152
+ const t = foundNullabilityInference.isNull === true ? fi.type : unnullify(fi.type);
242150
242153
  return {name: fi.name, type: t, _expr: fi._expr};
242151
242154
  } else {
242152
242155
  return fi;