@saltcorn/postgres 1.6.0-alpha.8 → 1.6.0-alpha.9

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/postgres.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/postgres",
3
- "version": "1.6.0-alpha.8",
3
+ "version": "1.6.0-alpha.9",
4
4
  "description": "Postgres structures for Saltcorn, open-source no-code platform",
5
5
  "homepage": "https://saltcorn.com",
6
6
  "scripts": {
@@ -12,7 +12,7 @@
12
12
  "license": "MIT",
13
13
  "main": "index.js",
14
14
  "dependencies": {
15
- "@saltcorn/db-common": "1.6.0-alpha.8",
15
+ "@saltcorn/db-common": "1.6.0-alpha.9",
16
16
  "@saltcorn/plain-date": "0.2.5",
17
17
  "pg": "^8.13.1",
18
18
  "pg-copy-streams": "^6.0.6",
package/postgres.js CHANGED
@@ -114,7 +114,7 @@ const select = async (tbl, whereObj, selectopts = Object.create(null)) => {
114
114
  }, 0 as _level
115
115
  ${selectopts.orderBy ? `, ARRAY[row_number() over (ORDER BY "${sqlsanitize(selectopts.orderBy)}"${selectopts.orderDesc ? " DESC" : ""})] as _sort_path` : ""}
116
116
  FROM "${schema}"."${sqlsanitize(tbl)}"
117
- WHERE "${selectopts.tree_field}" IS NULL
117
+ WHERE "${selectopts.tree_field}" IS NULL ${where ? `AND ${where.replace("where ", "")}` : ""}
118
118
 
119
119
  UNION ALL
120
120