Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upJoining on arbitrary string field #838
Comments
This comment has been minimized.
|
I mentioned it in gitter, but your issue is that you're passing the wrong type to |
sgrif
closed this
Apr 4, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dbrgn commentedApr 4, 2017
I have a table with user information and a table with a public key cache.
I'd like to join those on the user id field. There is no foreign key on the tables though, since a cached key could exist without a user, and a user could exist without a cached key.
Is there a way to join two tables on an arbitrary field name, using either the string builder or a raw query?
I tried a raw query, but didn't get it to work:
Any pointers are warmly appreciated. I already searched through the test suite and through the issue tracker, but didn't find a working solution.