Skip to content
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

Database.Object() error when using table joins. #87

Open
hisystems opened this issue Aug 20, 2013 · 0 comments
Open

Database.Object() error when using table joins. #87

hisystems opened this issue Aug 20, 2013 · 0 comments

Comments

@hisystems
Copy link
Owner

When Database.Object() is called and the table joins are explicitly or implicitly created (via ObjectReferenceEarlyBinding) then an Ambiguous column name error occurs. For example:

SELECT * FROM ([ReferencingTable] INNER JOIN [PrimaryTable] ON [ReferencingTable].[ItemID] = [PrimaryTable].[ItemID]) WHERE [ItemID] = 11 AND ([SubSetID] = 7) ---> System.Data.OleDb.OleDbException: Ambiguous column name 'ItemID'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant