pqb 0.38.2 → 0.38.3
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2146,7 +2146,7 @@ const andOrToSql = (ctx, table, query, quotedAs, parens) => {
|
|
|
2146
2146
|
} else {
|
|
2147
2147
|
return;
|
|
2148
2148
|
}
|
|
2149
|
-
return parens ? `(${sql})` : sql;
|
|
2149
|
+
return parens && sql ? `(${sql})` : sql;
|
|
2150
2150
|
};
|
|
2151
2151
|
const processAnds = (and, ctx, table, query, quotedAs, parens) => {
|
|
2152
2152
|
const ands = [];
|