Skip to content

Commit 011e555

Browse files
committed
Using constant
1 parent 59b1bc3 commit 011e555

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Provider/src/FirebirdSql.Data.FirebirdClient/Common/Charset.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ internal sealed class Charset
3030
{
3131
#region Constants
3232

33-
const string Octets = "OCTETS";
34-
const string None = "NONE";
33+
internal const string Octets = "OCTETS";
34+
internal const string None = "NONE";
3535

3636
#endregion
3737

Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient/FbCommand.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,8 +947,7 @@ private bool BuildParameterDescriptor(Descriptor descriptor, FbParameter paramet
947947
}
948948
else if (type == FbDbType.Guid)
949949
{
950-
#warning Encapsulate
951-
charset = Charset.GetCharset("OCTETS");
950+
charset = Charset.GetCharset(Charset.Octets);
952951
}
953952
else if (parameter.Charset != FbCharset.Default)
954953
{

0 commit comments

Comments
 (0)