node-sql-parser
Advanced tools
Comparing version 3.6.4 to 3.6.5
@@ -821,3 +821,3 @@ | ||
export type aggr_fun_count = { type: 'aggr_func'; name: 'COUNT'; args:count_arg; over: over_partition }; | ||
export type aggr_fun_count = { type: 'aggr_func'; name: 'COUNT' | 'GROUP_CONCAT'; args:count_arg; over: over_partition }; | ||
@@ -1048,2 +1048,4 @@ | ||
type KW_GROUP_CONCAT = never; | ||
type KW_MAX = never; | ||
@@ -1050,0 +1052,0 @@ |
@@ -31,3 +31,8 @@ (function (global, factory) { | ||
const overStr = (0, _over.overToSQL)(over); | ||
if (args.distinct) str = `DISTINCT ${str}`; | ||
if (args.distinct) { | ||
const separator = args.expr.parentheses ? '' : ' '; | ||
str = ['DISTINCT', str].join(separator); | ||
} | ||
if (orderby) str = `${str} ${(0, _expr.orderOrPartitionByToSQL)(orderby, 'order by')}`; | ||
@@ -34,0 +39,0 @@ return [`${fnName}(${str})`, overStr].filter(_util.hasVal).join(' '); |
{ | ||
"name": "node-sql-parser", | ||
"version": "3.6.4", | ||
"version": "3.6.5", | ||
"description": "simple node sql parser", | ||
@@ -63,3 +63,3 @@ "main": "index.js", | ||
"@types/chai": "^4.1.7", | ||
"@types/mocha": "^8.0.0", | ||
"@types/mocha": "^9.0.0", | ||
"babel-loader": "^8.1.0", | ||
@@ -89,3 +89,3 @@ "browserify": "^17.0.0", | ||
"webpack": "^4.43.0", | ||
"webpack-cli": "^3.3.12", | ||
"webpack-cli": "^4.7.0", | ||
"webpack-node-externals": "^3.0.0" | ||
@@ -92,0 +92,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
22165
30309750