Skip to content

Commit

Permalink
Merge pull request #105 from hycomsa/90
Browse files Browse the repository at this point in the history
Fix incorrect query building
  • Loading branch information
kulasekp authored Feb 18, 2020
2 parents b3b7bc1 + 873f265 commit a803f88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void appendParametersToBaseQuery(StringBuilder base) {
}

private void appendCondition(StringBuilder base, String conditionString) {
if(base.toString().endsWith(WHERE)) {
if(!base.toString().endsWith(WHERE)) {
base.append("and ");
}
base.append(conditionString);
Expand Down

0 comments on commit a803f88

Please sign in to comment.