You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create two selectstatements on the same table (cake)
First one should be a simple select statement
Second should have both a join (cake_filling) and an order by on a column from the joined table
Union them
Expected Behavior
SELECT cake.column FROM cake (UNION SELECT cake.column FROM cake INNER JOIN cake_filling ON cake.id = cake_filling.cake_id ORDER BY cake_filling.filling_id)
Actual Behavior
SELECT cake.column FROM cake UNION SELECT cake.column FROM cake INNER JOIN cake_filling ON cake.id = cake_filling.cake_id ORDER BY cake_filling.filling_id which will error:
Error 1250(42000): Table cake_filling from one of the SELECTs cannot be used in field list.
Reproduces How Often
Always on Mysql (That I Tested), but I think it's a problem on all database flavours.
Versions
0.27.1
Additional Information
I triggered it in personal code so I don't have an example, could make one if needed.
The text was updated successfully, but these errors were encountered:
Description
Steps to Reproduce
Expected Behavior
SELECT cake.column FROM cake (UNION SELECT cake.column FROM cake INNER JOIN cake_filling ON cake.id = cake_filling.cake_id ORDER BY cake_filling.filling_id)
Actual Behavior
SELECT cake.column FROM cake UNION SELECT cake.column FROM cake INNER JOIN cake_filling ON cake.id = cake_filling.cake_id ORDER BY cake_filling.filling_id
which will error:Error 1250(42000): Table
cake_filling
from one of the SELECTs cannot be used in field list.Reproduces How Often
Always on Mysql (That I Tested), but I think it's a problem on all database flavours.
Versions
0.27.1
Additional Information
I triggered it in personal code so I don't have an example, could make one if needed.
The text was updated successfully, but these errors were encountered: