Ambiguous column name error - but not in SQLiteStudio #4227
gordonfroyle
started this conversation in
General
Replies: 1 comment 3 replies
-
Yeah... It's because SQLiteStudio does a bunch of stuff with the query before it is actually executed. Only if this "bunch of stuff" produces invalid SQL, it reverts back to the original query that user entered and retries to execute that original query. Your query, after "bunch of stuff" looks like this:
It's a bug, that SQLiteStudio treats |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider the following code
When I run this using sqlite3 on the terminal, there is an error "ambiguous column name: id".
This is what I expect because the SELECT id, value does not have fully qualified column names.
However, when I run the same code on SQLiteStudio, no error is produced, and it just seems to make a choice (presumably T1.id and T1.value).
Is there a reason for this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions