ts-sql-query
Advanced tools
Comparing version 1.46.0 to 1.47.0
{ | ||
"name": "ts-sql-query", | ||
"version": "1.46.0", | ||
"version": "1.47.0", | ||
"description": "Type-safe SQL query builder like QueryDSL or JOOQ in Java or Linq in .Net for TypeScript with MariaDB, MySql, Oracle, PostgreSql, Sqlite and SqlServer support.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -607,5 +607,7 @@ "use strict"; | ||
} | ||
this.__asSelectData(); // Ensure any missing initialization | ||
if (this.__groupBy.length > 0) { | ||
const withView = new WithViewImpl_1.WithViewImpl(this.__sqlBuilder, 'result_for_count', this); | ||
const data = { ...this.__asSelectData() }; // Ensure any missing initialization and create a copy of the data | ||
delete data.__limit; | ||
delete data.__offset; | ||
const withView = new WithViewImpl_1.WithViewImpl(this.__sqlBuilder, 'result_for_count', data); | ||
const withs = []; | ||
@@ -629,2 +631,3 @@ withView.__addWiths(this.__sqlBuilder, withs); | ||
} | ||
this.__asSelectData(); // Ensure any missing initialization | ||
const selectCountData = { | ||
@@ -1132,3 +1135,6 @@ [symbols_1.isSelectQueryObject]: true, | ||
__buildSelectCount(countAll, params) { | ||
const withView = new WithViewImpl_1.WithViewImpl(this.__sqlBuilder, 'result_for_count', this); | ||
const data = { ...this.__asSelectData() }; // Ensure any missing initialization and create a copy of the data | ||
delete data.__limit; | ||
delete data.__offset; | ||
const withView = new WithViewImpl_1.WithViewImpl(this.__sqlBuilder, 'result_for_count', data); | ||
const withs = []; | ||
@@ -1135,0 +1141,0 @@ withView.__addWiths(this.__sqlBuilder, withs); |
2051982
34681