shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

DQL table name is the same with alias rewrite wrong SQL

Open codefairy08 opened this issue 7 years ago • 0 comments

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 = ?

codefairy08 avatar Feb 15 '19 04:02 codefairy08