Skip to content

Commit 4eac669

Browse files
committed
Obsolete SqlTranslator member
1 parent c2f3177 commit 4eac669

6 files changed

Lines changed: 8 additions & 1 deletion

File tree

Orm/Xtensive.Orm.MySql/Sql.Drivers.MySql/v5_0/Translator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public override void Initialize()
4747

4848
/// <inheritdoc/>
4949
[DebuggerStepThrough]
50+
[Obsolete]
5051
public override string QuoteString(string str) =>
5152
"'" + str.Replace("'", "''").Replace(@"\", @"\\").Replace("\0", string.Empty) + "'";
5253

Orm/Xtensive.Orm.MySql/Sql.Drivers.MySql/v5_7/Translator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public override void Initialize()
4444

4545
/// <inheritdoc/>
4646
[DebuggerStepThrough]
47+
[Obsolete]
4748
public override string QuoteString(string str) =>
4849
"'" + str.Replace("'", "''").Replace(@"\", @"\\").Replace("\0", string.Empty) + "'";
4950

Orm/Xtensive.Orm.Oracle/Sql.Drivers.Oracle/v09/Translator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public override void Initialize()
6161
public override SqlHelper.EscapeSetup EscapeSetup => SqlHelper.EscapeSetup.WithQuotes;
6262

6363
/// <inheritdoc/>
64+
[Obsolete]
6465
public override string QuoteString(string str) => "N" + base.QuoteString(str);
6566

6667
/// <inheritdoc/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ protected virtual void InitFunctionTypeTranslations()
135135

136136
/// <inheritdoc/>
137137
[DebuggerStepThrough]
138+
[Obsolete]
138139
public override string QuoteString(string str) =>
139140
"'" + str.Replace("'", "''").Replace(@"\", @"\\").Replace("\0", string.Empty) + "'";
140141

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Xtensive.Sql.Dml;
88
using Xtensive.Sql.Model;
99
using Xtensive.Sql.Compiler;
10+
using System;
1011

1112
namespace Xtensive.Sql.Drivers.PostgreSql.v8_2
1213
{
@@ -22,6 +23,7 @@ protected override void InitFunctionTypeTranslations()
2223

2324
/// <inheritdoc/>
2425
[DebuggerStepThrough]
26+
[Obsolete]
2527
public override string QuoteString(string str) =>
2628
"E'" + str.Replace("'", "''").Replace(@"\", @"\\").Replace("\0", string.Empty) + "'";
2729

@@ -43,7 +45,7 @@ public override void Translate(IOutput output, SqlFunctionType type)
4345
};
4446
}
4547

46-
protected override void AppendIndexStorageParameters(IOutput output, Index index)
48+
protected override void AppendIndexStorageParameters(IOutput output, Model.Index index)
4749
{
4850
if (index.FillFactor != null) {
4951
_ = output.Append($"WITH(FILLFACTOR={index.FillFactor})");

Orm/Xtensive.Orm/Sql/Compiler/SqlTranslator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,6 +2558,7 @@ public virtual string BuildBatch(IReadOnlyList<string> statements)
25582558
/// <remarks>
25592559
/// Use TranslateString instead of this method within SqlTranslators/SqlCompilers where possible.
25602560
/// </remarks>
2561+
[Obsolete]
25612562
public virtual string QuoteString(string str)
25622563
{
25632564
//Use TranslateString instead of this method within SqlTranslators/SqlCompilers where possible

0 commit comments

Comments
 (0)