2002-10-27 Rodrigo Moya <rodrigo@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data.OleDb / OleDbConnection.cs
index f88f5988af5de0e032085e69528bce9146eaf897..8251b1d417b9b2536784bb67e8cf37a79f7c3f69 100644 (file)
@@ -21,7 +21,6 @@ namespace System.Data.OleDb
 
                string connectionString;
                int connectionTimeout;
-               OleDbDataReader dataReader;
                IntPtr gdaConnection;
 
                #endregion
@@ -34,7 +33,6 @@ namespace System.Data.OleDb
                        gdaConnection = IntPtr.Zero;
                        connectionTimeout = 15;
                        connectionString = null;
-                       dataReader = null;
                }
 
                public OleDbConnection (string connectionString) : this ()
@@ -123,16 +121,6 @@ namespace System.Data.OleDb
                                return gdaConnection;
                        }
                }
-
-               internal OleDbDataReader DataReader
-               {
-                       get {
-                               return dataReader;
-                       }
-                       set {
-                               dataReader = value;
-                       }
-               }
                
                #endregion // Properties
        
@@ -181,14 +169,11 @@ namespace System.Data.OleDb
                                libgda.gda_connection_close (gdaConnection);
                                gdaConnection = IntPtr.Zero;
                        }
-
-                       dataReader = null;
                }
 
                public OleDbCommand CreateCommand ()
                {
-                       if (State == ConnectionState.Open &&
-                           DataReader == null)
+                       if (State == ConnectionState.Open)
                                return new OleDbCommand (null, this);
 
                        return null;