Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leftJoin can't give a value of 0 #953

Closed
rickytan opened this issue Aug 29, 2015 · 0 comments
Closed

leftJoin can't give a value of 0 #953

rickytan opened this issue Aug 29, 2015 · 0 comments

Comments

@rickytan
Copy link

I have a statement with

knex('xxx').leftJoin('abc as a', 'a.field', 0);

And it generate a QUERY of : select * from xxx left join abc as a on a.field = , the 0 is missing. Perhaps you write a code as followering:

if (arguments[1]) {

}

which should be:

if (typeof arguments[1] === 'undefined') {

}

😦

harriha added a commit to harriha/knex that referenced this issue Aug 30, 2015
Value 0 didn't work as expected with the previous check.
harriha added a commit to harriha/knex that referenced this issue Aug 30, 2015
Value 0 didn't work as expected with the previous check.
rhys-vdw added a commit that referenced this issue Sep 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant