Skip to content

Commit

Permalink
fixed a bug in the generation of the having clause
Browse files Browse the repository at this point in the history
The generation of the having clause was not testing the existence of a
previous `having`, but the existence of the `where` clause
  • Loading branch information
xavierlacot committed Jul 11, 2012
1 parent 8848416 commit 74496d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion joli.js
Expand Up @@ -546,7 +546,7 @@ var joliCreator = function() {
return this;
},
having: function(expression, value) {
if (null !== this.data.where) {
if (null !== this.data.having) {
this.data.having += ' and ';
} else {
this.data.having = '';
Expand Down

0 comments on commit 74496d2

Please sign in to comment.