FIX: ????? OracleDataReader.GetChars ?? ?????? ???????? ??? ????? ?? .NET Framework 2.0

?????? ????????? ?????? ?????????
???? ???????: 922674 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

?? Microsoft .NET Framework 2.0 ? ????? OracleDataReader.GetChars ?? ?????? ???????? ??? ????? ?? ????? ??????? ????? ?????? ?? ???? OracleDataReader. ??? ????? ??????? ???? ??????? ??????? OracleDataReader.Read ?? ????? OracleDataReader.GetChars ????? ???????? ?? ???? ?????.

????

??????? ??????? ??????

????? ???? ????? ???? ????? ?? Microsoft. ???? ????? ??? ?? ?? ??????? ??????? ?? ??? ??????? ???. ???? ??? ???????? ??? ?? ??????? ???? ????? ??? ??????? ????????. ?? ??? ????? ???????? ?????? ??? ??? ??????? ??????. ?????? ??? ?? ??? ????? ??? ??????? ??????? ???? ????????? ??? ??????? ?????? ?? ???? ???? .NET Framework 2.0 ????? ????? ??? ??? ??????? ??????.

??? ??? ??????? ?????? ???? ?????? ??? ??????? ?? Microsoft "?????? ??? ??????? ??????. ?????? ??? ????? ????? ?????? ?????? ?????? ?????? ??? ??????? ?? Microsoft ???? ??????? ??? ?????? ?????? ?? ?????? ???? Microsoft ?????? ??? ?????:
http://support.microsoft.com/contactus/?ws=support
?????? ?? ??? ???????? ?? ??? ????? ????????? ???? ?????? ????? ??? ??????? ????? ??? ??? ?????? ????? ??? Microsoft ?? ??????? ?????? ??? ???? ??? ?? ???????. ???? ????? ?????? ????? ???????? ??? ????? ????? ???????? ????????? ???? ?? ???? ??? ???? ??? ???????.

????????? ????????

???? ?? ??????? ?????.

????? ????? ?????

??? ????? ????? ????????? ??? ????? ??? ??????? ??????.

??????? ??????? ??????? ??????

?? ??? ??? ??????? ?????? ??? ??? ??????? ????? ????.

??????? ?????

????? ????? ????? ?????????? ?? ??? ??????? ?????? ???? ????? (?? ???? ????) ??????? ?? ?????? ??????. ??? ??? ???????? ???????? ?????? ???? ??????? ?? "??? ??????? ???????" (UTC). ????? ???? ???? ??????? ?????? ??? ??????? ??? ??????? ??????. ?????? ????? ??? ??????? ??????? (UTC) ???????? ??????? ?????? ????? ??????? ??????? ??????? ?? ???? ??????? ?????? ?? "???? ??????".
?? ??? ??????????? ??? ??????
??? ?????????? ???????? ???????????????
Mscordacwks.dll2.0.50727.178801,28008 ????? ????11: 28
Mscorlib.dll2.0.50727.1784,317,18408 ????? ????11: 28
Mscorwks.dll2.0.50727.1785,624,32008 ????? ????11: 27
Normalization.dll2.0.50727.17815,36008 ????? ????11: 28
Normidna.nlp??? ???? ???????59,34208 ????? ????11: 28
Normnfc.nlp??? ???? ???????45,79408 ????? ????11: 28
Normnfd.nlp??? ???? ???????39,28408 ????? ????11: 28
Normnfkc.nlp??? ???? ???????66,38408 ????? ????11: 28
Normnfkd.nlp??? ???? ???????60,29408 ????? ????11: 28
Sos.dll2.0.50727.178377,34408 ????? ????11: 28
System.data.dll2.0.50727.1782,893,82408 ????? ????11: 28
System.data.oracleclient.dll2.0.50727.178482,30408 ????? ????11: 28

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ??? "????? ???".

??????? ????

????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
824684??? ????????? ???????? ????????? ?? ??? ??????? ????? Microsoft
?????? ??? ???? ?? ????????? ??? ????? OracleDataReader.GetChars ?? ?????? ???? ???? ????? Microsoft (MSDN) ?????? ??? ?????:
http://msdn2.microsoft.com/en-us/library/system.data.oracleclient.oracledatareader.getchars(VS.80).aspx

????? ????? ????? ???????

  1. ??? ????? Microsoft Visual Studio 2005.
  2. ?? ??????? ???? ???? ??? ???? ?? ???? ??? ???????.
  3. ???? ??? Visual C# ???? ??? ????? ???? ?????? ????? ConsoleApplication1 ?? ?????? ??? ? ?? ???? ??? ?????.
  4. ?? ??? Program.cs ??????? ????????? ???????? ???????? ???????? ????????? ???????? ???????.
    using System;
    using System.Text;
    using System.Data;
    using System.Data.OracleClient;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            private static void Main()
            {
                OracleConnection cn = new OracleConnection("Data Source=<DataSourceName>;uid=<UserName>;pwd=<Password>;");
                cn.Open();
    
                DropTable(cn);
                CreateTable(cn);
    
                OracleCommand command = cn.CreateCommand();
                command.CommandText = "SELECT DATA FROM TEST_GETCHARS ORDER BY DATA DESC";
                OracleDataReader reader = command.ExecuteReader();
                while (reader.Read())
                {
                    string getStringText = reader.GetString(0);
                    char[] chs = new char[40];
                    long count = reader.GetChars(0, 0, chs, 0, 40);
                    String s = new String(chs);
                    Console.WriteLine("String from GetString: {2}, String from GetChars: {0}, Character count: {1}", s, count.ToString(), getStringText);
                }
    
                cn.Close();
                cn = null;
            }
    
            private static void CreateTable(IDbConnection connection)
            {
                IDbCommand command = connection.CreateCommand();
                command.CommandText = "CREATE TABLE TEST_GETCHARS (DATA varchar(40))";
                command.ExecuteNonQuery();
    
                command.CommandText = "INSERT INTO TEST_GETCHARS (DATA) VALUES('yes')";
                command.ExecuteNonQuery();
    
                command.CommandText = "INSERT INTO TEST_GETCHARS (DATA) VALUES('no')";
                for (int i = 0; i < 2000; i++)
                command.ExecuteNonQuery();
    
            }
    
            private static void DropTable(IDbConnection connection)
            {
                try
                {
                    IDbCommand command = connection.CreateCommand();
                    command.CommandText = "DROP TABLE TEST_GETCHARS";
                    command.ExecuteNonQuery();
                }
                catch (Exception)
                {
                }
            }
        }
    }
  5. ?? ?????? ?????? ???? ??? ?????? ?????? ??? ????? ??? ?? ???? ??? ????? ????.
  6. ???? ??? ????? ??????? .NET ???? ??? System.Data.OracleClient ?? ???? ??? ?????.
  7. ?? ??????? ????? ? ???? ??? ??? ???????.

???????

???? ???????: 922674 - ????? ??? ??????: 23/?? ??????/1428 - ??????: 1.1
????? ???
  • Microsoft .NET Framework 2.0
????? ??????: 
kbmt kbfix kbbug kbhotfixserver kbqfe kbpubtypekc KB922674 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????922674

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com