Skip to content

Commit

Permalink
where clause fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chtjong-test committed Apr 26, 2018
1 parent eb9e547 commit dd91a00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion adapters/db/mysqldb.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ module.exports =
query.append("`" + condObj.entity + "table`.`" + condObj.fieldName + "`" + condObj.operator + "?", condObj.fieldValue);
}
}
else
else if(condObj.children.length > 0)
{
query.append("(");
for (var i = 0; i < condObj.children.length; i++)
Expand All @@ -441,6 +441,10 @@ module.exports =
}
query.append(")");
}
else
{
query.append("1=1");
}
}

this.quickFind = quickFind;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orion-api",
"version": "1.2.9",
"version": "1.2.10",
"description": "REST API server application",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit dd91a00

Please sign in to comment.