sql-typechecker 0.0.58 → 0.0.60
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 +1 -3
- package/out/cli.js.map +2 -2
- package/package.json +1 -1
package/out/cli.js
CHANGED
|
@@ -242331,7 +242331,7 @@ function elabDeleteOrUpdate(g, c, s) {
|
|
|
242331
242331
|
};
|
|
242332
242332
|
if (s.where) {
|
|
242333
242333
|
const whereT = elabExpr(g, newContext, s.where);
|
|
242334
|
-
|
|
242334
|
+
requireBoolean(s.where, whereT);
|
|
242335
242335
|
}
|
|
242336
242336
|
if (s.returning) {
|
|
242337
242337
|
return {
|
|
@@ -242445,8 +242445,6 @@ function doCreateFunction(g, c, s) {
|
|
|
242445
242445
|
if (s.returns && s.returns.type.kind === void 0 && s.returns.type.name === "record") {
|
|
242446
242446
|
if (unifiedReturnType.kind !== "record") {
|
|
242447
242447
|
throw new ErrorWithLocation(s._location, `Function should return record, but returns ${JSON.stringify(unifiedReturnType)}`);
|
|
242448
|
-
} else if (unifiedReturnType.fields.length <= 1) {
|
|
242449
|
-
throw new ErrorWithLocation(s._location, `Function should return more than one field when specified as RETURNS RECORD`);
|
|
242450
242448
|
}
|
|
242451
242449
|
}
|
|
242452
242450
|
return {
|