Move X86 check to utilities
authorSaurabh Singh <sausing@microsoft.com>
Thu, 13 Feb 2020 23:56:15 +0000 (15:56 -0800)
committerSaurabh Singh <sausing@microsoft.com>
Thu, 13 Feb 2020 23:56:15 +0000 (15:56 -0800)
src/libraries/System.Data.OleDb/src/OleDbCommand.cs
src/libraries/System.Data.OleDb/src/OleDb_Util.cs

index 0e72368..23d7124 100644 (file)
@@ -44,8 +44,6 @@ namespace System.Data.OleDb
         private int _changeID;
         private int _lastChangeID;
 
-        private static readonly bool s_runningOnX86 = RuntimeInformation.ProcessArchitecture == Architecture.X86;
-
         public OleDbCommand() : base()
         {
             GC.SuppressFinalize(this);
@@ -423,7 +421,7 @@ namespace System.Data.OleDb
 
             OleDbHResult hr;
 
-            if (s_runningOnX86)
+            if (ODB.IsRunningOnX86)
             {
                 tagDBPARAMBINDINFO_x86[] bindInfo_x86 = new tagDBPARAMBINDINFO_x86[bindInfo.Length];
                 for (int i = 0; i < bindInfo.Length; i++)
index 0d68b7a..5487ba6 100644 (file)
@@ -687,6 +687,8 @@ namespace System.Data.OleDb
         internal const string DbInfoKeywords = "DbInfoKeywords";
         internal const string Keyword = "Keyword";
 
+        internal static readonly bool IsRunningOnX86 = RuntimeInformation.ProcessArchitecture == Architecture.X86;
+
         // Debug error string writeline
         internal static string ELookup(OleDbHResult hr)
         {