Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Inconsistent id's when using boss_db:find #29

runejuhl opened this Issue · 5 comments

2 participants


When using boss_db:find to look for entries with specific id's, boss_db requires the use of integers only (e.g. 2, clashing with the standard type-integer string (e.g. "tag-2") naming scheme.

15> Tag = boss_db:find("tag-2").  
16> Tag:id().                   
17> boss_db:find(tag, [{id, in, ["tag-2"]}]).
              <<"invalid input syntax for integer: \"tag-2\"">>,
18> boss_db:find(tag, [{id, in, [2]}]).      

So far I've only tried with the pgsql adapter -- I'll try with the mock adapter tomorrow and update the issue accordingly.


Works fine with the mock adapter:

2> Tag = tag:new(id, "erlang", false).
3> Tag:save().
4> boss_db:find("tag-1").
5> boss_db:find(tag, [id, in, [1]]).
6> boss_db:find(tag, [id, in, ["tag-1"]]).

It seems that the following commit fixes it: gwitmond/boss_db@5974c73


Would love to get this integrated if someone wants to send me a pull request


Branch merged, closing

@evanmiller evanmiller closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.