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

How to find data where field is empty? #16

Open
chakhedik opened this issue Jun 7, 2012 · 6 comments
Open

How to find data where field is empty? #16

chakhedik opened this issue Jun 7, 2012 · 6 comments
Labels

Comments

@chakhedik
Copy link

Let say the model is 'something' have field 'id' & 'anything',

A = something:new(id, []),
A:save().

boss_db:find(something, [{anything, []}]) or boss_db:find(something, [{anything, ""}]) does not return anything, just an empty list

I've tried the 'equals' & 'matches' also the same.

@evanmiller
Copy link
Contributor

What adapter are you using?

@chakhedik
Copy link
Author

I use mongodb

@evanmiller
Copy link
Contributor

Do you have the same problem with other adapters? E.g. the mock adapter

@chakhedik
Copy link
Author

It seems there's no problem with mock adapter, I can find data by empty field, I haven't try any others though, I use mongodb mainly

@ghost
Copy link

ghost commented Jul 18, 2012

@chakhedik I'll have a look.

@evanmiller Haven't been following CB lately. Just checked out latest version e001c1a and getting a compilation error when building the framework:

$ make
[...]
==> cowboy (get-deps)
==> mochicow (get-deps)
==> aleppo (compile)
make: *** [all] Error 1

My config:
Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]
Ubuntu 12.04 LTS

Am I missing something?

@evanmiller
Copy link
Contributor

Instead of "make" try

./rebar get-deps
./rebar compile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants