node-sql-parser
Advanced tools
Comparing version 4.0.7 to 4.0.8
@@ -87,3 +87,4 @@ (function (global, factory) { | ||
args, | ||
name | ||
name, | ||
args_parentheses | ||
} = expr; | ||
@@ -100,5 +101,9 @@ const { | ||
if ((0, _util.toUpper)(name) === 'TRIM') separator = ' '; | ||
const str = `${name}(${(0, _expr.exprToSQL)(args).join(separator)})`; | ||
let str = [name]; | ||
str.push(args_parentheses === false ? ' ' : '('); | ||
str.push((0, _expr.exprToSQL)(args).join(separator)); | ||
if (args_parentheses !== false) str.push(')'); | ||
str = str.join(''); | ||
return [parentheses ? `(${str})` : str, collateStr, overStr].filter(_util.hasVal).join(' '); | ||
} | ||
}); |
{ | ||
"name": "node-sql-parser", | ||
"version": "4.0.7", | ||
"version": "4.0.8", | ||
"description": "simple node sql parser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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 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
39667804
96
23227