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

IS NULL condition #59

Closed
czkody opened this issue Mar 3, 2013 · 2 comments
Closed

IS NULL condition #59

czkody opened this issue Mar 3, 2013 · 2 comments

Comments

@czkody
Copy link

czkody commented Mar 3, 2013

Hello,

is there any way to create "IS NULL" condition. Tried to do

Model.find({field: null}, ...

but that throws exception

500 TypeError: Cannot read property 'orm_special_object' of null

    at Builder.build (.\node_modules\orm\lib\sql\Select.js:130:38)
    at Driver.find(.\node_modules\orm\lib\Drivers\DML\mysql.js:94:34)
    at Object.run (.\node_modules\orm\lib\ChainFind.js:75:16)
    at Function.model.find (.\node_modules\orm\lib\Model.js:242:9)

Thank you for your great work on project.

@dresende
Copy link
Owner

dresende commented Mar 4, 2013

I'll make the changes and post back here.

@czkody
Copy link
Author

czkody commented Mar 4, 2013

Thank you very much :)

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

2 participants