pg-mvc-service 2.0.15 → 2.0.16

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.
@@ -59,7 +59,7 @@ class TableModel {
59
59
  }
60
60
  get createSqlFromJoinWhere() {
61
61
  let sql = ` FROM ${this.TableName} as "${this.TableAlias}"`;
62
- console.log('createSqlFromJoinWhere', this.joinConditions);
62
+ console.log('createSqlFromJoinWhere', this.joinConditions.length);
63
63
  for (const join of this.joinConditions) {
64
64
  const joins = {
65
65
  inner: ' INNER JOIN',
@@ -68,7 +68,7 @@ class TableModel {
68
68
  };
69
69
  sql += joins[join.type];
70
70
  sql += ` ${join.model.TableName} as "${join.model.TableAlias}" ON `;
71
- console.log(join, 'createSqlFronJOin', this.vars);
71
+ console.log(join.conditions, 'createSqlFronJOin', this.vars);
72
72
  const query = WhereExpression_1.default.createCondition(join.conditions, this, this.vars.length + 1);
73
73
  console.log('createSqlFronJoin end', this.vars, query.vars);
74
74
  sql += query.expression;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -81,7 +81,7 @@ export class TableModel {
81
81
  private get createSqlFromJoinWhere(): string {
82
82
  let sql = ` FROM ${this.TableName} as "${this.TableAlias}"`;
83
83
 
84
- console.log('createSqlFromJoinWhere', this.joinConditions);
84
+ console.log('createSqlFromJoinWhere', this.joinConditions.length);
85
85
  for (const join of this.joinConditions) {
86
86
  const joins = {
87
87
  inner: ' INNER JOIN',
@@ -90,7 +90,7 @@ export class TableModel {
90
90
  }
91
91
  sql += joins[join.type];
92
92
  sql += ` ${join.model.TableName} as "${join.model.TableAlias}" ON `;
93
- console.log(join, 'createSqlFronJOin', this.vars);
93
+ console.log(join.conditions, 'createSqlFronJOin', this.vars);
94
94
  const query = WhereExpression.createCondition(join.conditions, this, this.vars.length + 1);
95
95
  console.log('createSqlFronJoin end', this.vars, query.vars);
96
96
  sql += query.expression;