rado 0.1.47 → 0.1.48
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/dist/lib/Formatter.js +3 -3
- package/package.json +1 -1
package/dist/lib/Formatter.js
CHANGED
|
@@ -416,7 +416,9 @@ var Formatter = class {
|
|
|
416
416
|
formatIn(ctx, expr) {
|
|
417
417
|
const { stmt } = ctx;
|
|
418
418
|
switch (expr.type) {
|
|
419
|
-
case ExprType.
|
|
419
|
+
case ExprType.Query:
|
|
420
|
+
return this.formatExprValue(ctx, expr);
|
|
421
|
+
default:
|
|
420
422
|
stmt.openParenthesis();
|
|
421
423
|
stmt.raw("SELECT value FROM json_each");
|
|
422
424
|
stmt.openParenthesis();
|
|
@@ -424,8 +426,6 @@ var Formatter = class {
|
|
|
424
426
|
stmt.closeParenthesis();
|
|
425
427
|
stmt.closeParenthesis();
|
|
426
428
|
return stmt;
|
|
427
|
-
default:
|
|
428
|
-
return this.formatExprValue(ctx, expr);
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
retrieveField(expr, field) {
|