2004-03-10 Umadevi S (sumadevi@novell.com)
[mono.git] / mcs / class / System.Data / System.Data.OleDb / OleDbConnection.cs
index f88f5988af5de0e032085e69528bce9146eaf897..a079c6f9b959a600c4b535d202bed3bf4da4e704 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;
@@ -230,7 +215,7 @@ namespace System.Data.OleDb
 
                        gdaConnection = libgda.gda_client_open_connection (libgda.GdaClient,
                                                                           connectionString,
-                                                                          "", "");
+                                                                          "", "", 0);
                        
                        /* convert the connection string to its GDA equivalent */
                        //args = connectionString.Split (';');