pqb 0.38.1 → 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.d.ts +2 -2
- 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.mjs
CHANGED
|
@@ -2144,7 +2144,7 @@ const andOrToSql = (ctx, table, query, quotedAs, parens) => {
|
|
|
2144
2144
|
} else {
|
|
2145
2145
|
return;
|
|
2146
2146
|
}
|
|
2147
|
-
return parens ? `(${sql})` : sql;
|
|
2147
|
+
return parens && sql ? `(${sql})` : sql;
|
|
2148
2148
|
};
|
|
2149
2149
|
const processAnds = (and, ctx, table, query, quotedAs, parens) => {
|
|
2150
2150
|
const ands = [];
|