eagerload doesn't work with synonym

Issue #485 resolved
Former user created an issue

If you have use the synonym feature of the ORM, eagerload doesn't have any affect if you use the synonym name. Take a look at the test script for an example. I create a column called "_bar" and a synonym called "bar" than refers to it. If I do eagerload("_bar") things work normally, if I do eagarload("bar") there isn't a join.

Comments (2)

  1. Mike Bayer repo owner

    indeed. your example needs the synonym set up as synonym('_bar'). fix for this issue + test committed in changeset:2342. should also fix it for "defer"/"undefer" but the unit test only looks at "eagerload".

  2. Log in to comment