sql-typechecker 0.0.28 → 0.0.29

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
@@ -241978,7 +241978,10 @@ function doCreateTable(g, s) {
241978
241978
  return acc.concat({
241979
241979
  name: c.name,
241980
241980
  type: mkType(c.dataType, c.constraints || []),
241981
- expr: null
241981
+ expr: {
241982
+ type: "null",
241983
+ _location: c._location
241984
+ }
241982
241985
  });
241983
241986
  }
241984
241987
  }, []);
@@ -242198,7 +242201,7 @@ function elabInsert(g, c, s) {
242198
242201
  }
242199
242202
  insertT.fields.forEach((insertField, i) => {
242200
242203
  const col = columns[i];
242201
- cast(s.insert, insertField.type, col.type, "assignment");
242204
+ cast(insertField.expr || s.insert, insertField.type, col.type, "assignment");
242202
242205
  });
242203
242206
  if (s.returning) {
242204
242207
  return {