if (connection.State == ConnectionState.Closed)
throw new InvalidOperationException ("State == Closed");
// FIXME: a third check is mentioned in .NET docs
- if (connection.DataReader != null)
- throw new InvalidOperationException ("DataReader != null");
IntPtr gdaConnection = connection.GdaConnection;
IntPtr gdaParameterList = parameters.GdaParameterList;
if (connection.State != ConnectionState.Open)
throw new InvalidOperationException ("State != Open");
- if (connection.DataReader != null)
- throw new InvalidOperationException ("DataReader != null");
this.behavior = behavior;
public object ExecuteScalar ()
{
- if (connection.DataReader != null)
- throw new InvalidOperationException ("DataReader != null");
-
SetupGdaCommand ();
OleDbDataReader reader = ExecuteReader ();
if (reader == null) {