shardingsphere
shardingsphere copied to clipboard
DQL table name is the same with alias rewrite wrong SQL
Bug Report
table name is the same with alias, then use column with alias, rewrite the wrong sql. logic SQL : SELECT t_order.order_id FROM t_order t_order WHERE t_order.user_id = ? wrong actual SQL: SELECT t_order_1 .order_id FROM t_order_1 t_order WHERE t_order_1 .user_id = ? correct actual SQL: SELECT t_order.order_id FROM t_order_1 t_order WHERE t_order.user_id = ?