Skip to content

Commit 6c06b5b

Browse files
committed
Putting method into public section.
1 parent 45724cc commit 6c06b5b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/Client/Managed/GdsConnection.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,19 @@ public static IResponse ProcessOperation(int operation, XdrStream xdr)
370370
}
371371
}
372372

373+
public static string NormalizeLogin(string login)
374+
{
375+
if (string.IsNullOrEmpty(login))
376+
{
377+
return login;
378+
}
379+
if (login.Length > 2 && login[0] == '"' && login[login.Length - 1] == '"')
380+
{
381+
return NormalizeQuotedLogin(login);
382+
}
383+
return login.ToUpperInvariant();
384+
}
385+
373386
private static void WriteMultiPartHelper(Stream stream, byte code, byte[] data)
374387
{
375388
const int MaxLength = 255 - 1;
@@ -385,19 +398,6 @@ private static void WriteMultiPartHelper(Stream stream, byte code, byte[] data)
385398
}
386399
}
387400

388-
public static string NormalizeLogin(string login)
389-
{
390-
if (string.IsNullOrEmpty(login))
391-
{
392-
return login;
393-
}
394-
if (login.Length > 2 && login[0] == '"' && login[login.Length - 1] == '"')
395-
{
396-
return NormalizeQuotedLogin(login);
397-
}
398-
return login.ToUpperInvariant();
399-
}
400-
401401
private static string NormalizeQuotedLogin(string login)
402402
{
403403
var sb = new StringBuilder(login, 1, login.Length - 2, login.Length - 2);

0 commit comments

Comments
 (0)