You are not wrong anywhere I think. This code works fine here on
another DB. This is probably a bug somewhere due to the strange casing
used by Oracle. My guess is that it's a problem somewhere in SA, since
on non self-referential ManyToMany relationships, Elixir doesn't
generate any join conditions because SA can (usually) detect them
automatically in that case.
The next step would be to try to produce an SA-only test case, and if
the problem is present there too, add a ticket on SA's trac. If you
have any trouble producing the SA test-case, don't hesitate to ask for
help. Can't test it myself though since I don't have access to an
Oracle DB at the moment.
--
Gaëtan de Menten
http://openhex.org
Yes, this is what I meant. It would help if you provided a way to
create those tables, so that the test case can be run as-is. It seems
correct to me, except the last line:
> Case.users.select()
seem incorrect (though that might be a new usage of SA I'm not aware
of). In any case, it certainly not the equivalent of
"User.query.all()"
The correct equivalent would be:
session = sessionmaker()()
session.query(User).all()
The last step is to create a ticket on SA's trac with your script attached.
> I changed the query statement - same result...
>
> Before posting a ticket, could you verify, this would run on any other
> database (not Oracle) correctly?
Seems like the issue is not specific to Oracle but rather a case
issue, as the attached test case fails with the same error you have.