Skip to content

Commit d6c64e2

Browse files
committed
PostgreSql sql translators and compilators revised
Small code improvements, no QuoteIndentifier where possible, base BatchItemDelimiter is used, current formattin applied
1 parent 1cf6930 commit d6c64e2

8 files changed

Lines changed: 404 additions & 462 deletions

File tree

Orm/Xtensive.Orm.PostgreSql/Sql.Drivers.PostgreSql/v10_0/Translator.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2019-2021 Xtensive LLC.
1+
// Copyright (C) 2019-2022 Xtensive LLC.
22
// This code is distributed under MIT license terms.
33
// See the License.txt file in the project root for more information.
44
// Created by: Alexey Kulakov
@@ -12,6 +12,7 @@ namespace Xtensive.Sql.Drivers.PostgreSql.v10_0
1212
{
1313
internal class Translator : v9_1.Translator
1414
{
15+
/// <inheritdoc/>
1516
public override void Translate(SqlCompilerContext context, SqlJoinExpression node, JoinSection section)
1617
{
1718
var output = context.Output;
@@ -25,19 +26,19 @@ public override void Translate(SqlCompilerContext context, SqlJoinExpression nod
2526
case SqlJoinType.FullOuterJoin:
2627
throw new NotSupportedException();
2728
case SqlJoinType.CrossApply:
28-
output.Append("CROSS JOIN LATERAL");
29+
_ = output.Append("CROSS JOIN LATERAL");
2930
return;
3031
case SqlJoinType.LeftOuterApply:
31-
output.Append("LEFT JOIN LATERAL");
32+
_ = output.Append("LEFT JOIN LATERAL");
3233
return;
3334
}
3435
}
35-
output.Append(Translate(node.JoinType)).Append(" JOIN");
36+
_ = output.Append(Translate(node.JoinType)).Append(" JOIN");
3637
break;
3738
}
3839
case JoinSection.Exit: {
3940
if (node.JoinType == SqlJoinType.LeftOuterApply) {
40-
output.Append("ON TRUE");
41+
_ = output.Append("ON TRUE");
4142
}
4243
break;
4344
}

Orm/Xtensive.Orm.PostgreSql/Sql.Drivers.PostgreSql/v8_0/Compiler.cs

Lines changed: 129 additions & 165 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)