From 77415a6a75e08bc44d3ed713462af2cf5903925e Mon Sep 17 00:00:00 2001 From: Daniel Cohen Gindi Date: Thu, 11 Sep 2014 09:48:52 +0300 Subject: [PATCH] Regression in Joins, where alias were outputted as the table name --- dg.Sql/Sql/Query/Builders.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dg.Sql/Sql/Query/Builders.cs b/dg.Sql/Sql/Query/Builders.cs index 6335b3f0..55c7c3cd 100644 --- a/dg.Sql/Sql/Query/Builders.cs +++ b/dg.Sql/Sql/Query/Builders.cs @@ -43,14 +43,7 @@ private void BuildJoin(StringBuilder sb, ConnectorBase connection) sb.Append(connection.EncloseFieldName(join.RightTableSchema.DatabaseOwner)); sb.Append('.'); } - if (join.RightTableAlias != null) - { - sb.Append(connection.EncloseFieldName(join.RightTableAlias)); - } - else - { - sb.Append(connection.EncloseFieldName(join.RightTableSchema.SchemaName)); - } + sb.Append(connection.EncloseFieldName(join.RightTableSchema.SchemaName)); } else {