@areumtecnologia/mysql-db-handler 1.0.0 → 1.0.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/lib/databaseHandler.js +2 -2
- package/package.json +1 -1
package/lib/databaseHandler.js
CHANGED
|
@@ -196,9 +196,9 @@ class DatabaseHandler {
|
|
|
196
196
|
const whereClause = conditions.length > 0 ? ` WHERE ${conditions.join(' ')}` : '';
|
|
197
197
|
|
|
198
198
|
// Cláusulas adicionais
|
|
199
|
-
const groupByClause = clauses['GROUPBY'] ? ` GROUP BY ${clauses['
|
|
199
|
+
const groupByClause = clauses['GROUPBY'] ? ` GROUP BY ${clauses['GROUPBY']}` : '';
|
|
200
200
|
const havingClause = clauses['HAVING'] ? ` HAVING ${clauses['HAVING']}` : '';
|
|
201
|
-
const orderClause = clauses['ORDERBY'] ? ` ORDER BY ${clauses['
|
|
201
|
+
const orderClause = clauses['ORDERBY'] ? ` ORDER BY ${clauses['ORDERBY']}` : '';
|
|
202
202
|
const limitClause = clauses['LIMIT'] ? ` LIMIT ${clauses['LIMIT']}` : '';
|
|
203
203
|
const offsetClause = clauses['OFFSET'] ? ` OFFSET ${clauses['OFFSET']}` : '';
|
|
204
204
|
|
package/package.json
CHANGED