|
|
|
@ -141,7 +141,7 @@ exports.getWhereClause = function (whereInQueryParams, whereQuery, whereParams)
|
|
|
|
|
//console.log(result);
|
|
|
|
|
variable = result[0].match(/\(+(.*)/); |
|
|
|
|
|
|
|
|
|
console.log('variable',variable); |
|
|
|
|
// console.log('variable',variable);
|
|
|
|
|
|
|
|
|
|
if (!variable || variable.length !== 2) { |
|
|
|
|
grammarErr = 1; |
|
|
|
@ -209,11 +209,11 @@ exports.getWhereClause = function (whereInQueryParams, whereQuery, whereParams)
|
|
|
|
|
obj['params'] = [] |
|
|
|
|
obj['err'] = grammarErr |
|
|
|
|
|
|
|
|
|
console.log(whereInQueryParams); |
|
|
|
|
console.log(whereQuery); |
|
|
|
|
console.log(whereParams); |
|
|
|
|
console.log(grammarErr); |
|
|
|
|
console.log('= = = = = = = = ='); |
|
|
|
|
// console.log(whereInQueryParams);
|
|
|
|
|
// console.log(whereQuery);
|
|
|
|
|
// console.log(whereParams);
|
|
|
|
|
// console.log(grammarErr);
|
|
|
|
|
// console.log('= = = = = = = = =');
|
|
|
|
|
|
|
|
|
|
if (!grammarErr) { |
|
|
|
|
obj['query'] = whereQuery |
|
|
|
|