pgsql-deparser 18.3.0 → 18.3.2

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/deparser.js CHANGED
@@ -3539,9 +3539,8 @@ class Deparser {
3539
3539
  output.push('INCLUDE');
3540
3540
  output.push(context.parens(includeStrs.join(', ')));
3541
3541
  }
3542
- if (node.whereClause) {
3543
- output.push('WHERE');
3544
- output.push(this.visit(node.whereClause, context));
3542
+ if (node.nulls_not_distinct) {
3543
+ output.push('NULLS NOT DISTINCT');
3545
3544
  }
3546
3545
  if (node.options && node.options.length > 0) {
3547
3546
  const indexContext = context.spawn('IndexStmt');
@@ -3549,13 +3548,14 @@ class Deparser {
3549
3548
  output.push('WITH');
3550
3549
  output.push(context.parens(optionStrs.join(', ')));
3551
3550
  }
3552
- if (node.nulls_not_distinct) {
3553
- output.push('NULLS NOT DISTINCT');
3554
- }
3555
3551
  if (node.tableSpace) {
3556
3552
  output.push('TABLESPACE');
3557
3553
  output.push(quotes_1.QuoteUtils.quoteIdentifier(node.tableSpace));
3558
3554
  }
3555
+ if (node.whereClause) {
3556
+ output.push('WHERE');
3557
+ output.push(this.visit(node.whereClause, context));
3558
+ }
3559
3559
  return output.join(' ');
3560
3560
  }
3561
3561
  IndexElem(node, context) {
package/esm/deparser.js CHANGED
@@ -3536,9 +3536,8 @@ export class Deparser {
3536
3536
  output.push('INCLUDE');
3537
3537
  output.push(context.parens(includeStrs.join(', ')));
3538
3538
  }
3539
- if (node.whereClause) {
3540
- output.push('WHERE');
3541
- output.push(this.visit(node.whereClause, context));
3539
+ if (node.nulls_not_distinct) {
3540
+ output.push('NULLS NOT DISTINCT');
3542
3541
  }
3543
3542
  if (node.options && node.options.length > 0) {
3544
3543
  const indexContext = context.spawn('IndexStmt');
@@ -3546,13 +3545,14 @@ export class Deparser {
3546
3545
  output.push('WITH');
3547
3546
  output.push(context.parens(optionStrs.join(', ')));
3548
3547
  }
3549
- if (node.nulls_not_distinct) {
3550
- output.push('NULLS NOT DISTINCT');
3551
- }
3552
3548
  if (node.tableSpace) {
3553
3549
  output.push('TABLESPACE');
3554
3550
  output.push(QuoteUtils.quoteIdentifier(node.tableSpace));
3555
3551
  }
3552
+ if (node.whereClause) {
3553
+ output.push('WHERE');
3554
+ output.push(this.visit(node.whereClause, context));
3555
+ }
3556
3556
  return output.join(' ');
3557
3557
  }
3558
3558
  IndexElem(node, context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgsql-deparser",
3
- "version": "18.3.0",
3
+ "version": "18.3.2",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PostgreSQL AST Deparser",
6
6
  "main": "index.js",
@@ -60,5 +60,5 @@
60
60
  "@pgsql/quotes": "18.2.0",
61
61
  "@pgsql/types": "^18.0.0"
62
62
  },
63
- "gitHead": "a60df59baaf11fbfe516b0ed25280d5854ad00e9"
63
+ "gitHead": "bc21e590439743a236da9757adf2d43d34432710"
64
64
  }