-
Notifications
You must be signed in to change notification settings - Fork 600
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
Joining tables results in some null properties #67
Comments
Thanks for your issue report. I am working on getting a feature in that On Wed, Feb 11, 2015 at 11:18 AM, Tobrun Van Nuland <
Andrew Grosner, Android Developer Mobile Strategy, Design & Development www.raizlabs.com | Check my calendar |
I'm not sure that this will resolve the problem, the referenced fields only occur in the ProductRow so I believe it is not linked too the joining mechanism itself (but is a small side effect). If I find some time, I will add sources and do some debugging. Thanks for the quick reply, |
What is the SQL statement that is generated @tobrunvannuland ? thanks. It may be with how its generated or used. Thank you! |
After investigating the query and trying to do manipulations as a rawQuery. I can only conclude that this isn't a bug from dbflow. Thanks again for this awesome fast library. |
I'm having quite the same problem. The query is this:
It is returning the Things correctly, but all ids (I have a column named id) are 1. EDIT: Now I see that the id column is 1 because my User id = 1. How can I return correctly? |
I tried doing |
I think I just hit this bug but in an odd way. I was using an inner join, but the models I got back had the id's of the corresponding rows in the right (ApptPreview) table. This was my WhereClause: I think the bug had something to do with the fact that both tables had the same column for ID ("id"). The bug still surfaced when I used aliases. I managed to fix this bug by making the column names unique (I changed "id" on the Client table to "cltid". This isn't really the best course of action, but I guess it isn't too bad since we can just use migrations to update the table on existing databases. |
Left join between 2 tables:
Returns a List of ProductRows, 2 fields of those items are not correctly initialised with values
(amount & unit fields not correctly initialised, tried both String as int representation).
Without a Join:
Returns a List of ProductRows, all fields are correctly initialised with values.
The text was updated successfully, but these errors were encountered: