My issue is simple. I'm doing a JOIN rawQuery()
to get columns User._id
and Teacher._id
and the tables from users AS User join teachers AS Teacher
The cursor seems not to care about the alias so it overrides User._id
value with Teacher._id
cause both columns are just _id
for the Cursor
How can I solve this? i need all that data in 1 cursor so having 2 cursors isn't an option
Edit: I want to avoid changing or renaming the column _id
because of the design patters, isn't there a way to use alias for tables as in MySQL
?
Edit 2: or maybe changing the column name but only inside the Cursor
, not the actual column name