Diff of /System.Data.SQLite/SQLiteCommand.cs [a5a9f1] .. [7ec9b7]  Maximize  Restore

Switch to unified view

a/System.Data.SQLite/SQLiteCommand.cs b/System.Data.SQLite/SQLiteCommand.cs
...
...
15
15
16
  /// <summary>
16
  /// <summary>
17
  /// SQLite implementation of DbCommand.
17
  /// SQLite implementation of DbCommand.
18
  /// </summary>
18
  /// </summary>
19
#if !PLATFORM_COMPACTFRAMEWORK
19
#if !PLATFORM_COMPACTFRAMEWORK
20
  [Designer("SQLite.Designer.SQLiteCommandDesigner, SQLite.Designer, Version=1.0.36.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139"), ToolboxItem(true)]
20
  [Designer("SQLite.Designer.SQLiteCommandDesigner, SQLite.Designer, Version=1.0.37.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139"), ToolboxItem(true)]
21
#endif
21
#endif
22
  public sealed class SQLiteCommand : DbCommand, ICloneable
22
  public sealed class SQLiteCommand : DbCommand, ICloneable
23
  {
23
  {
24
    /// <summary>
24
    /// <summary>
25
    /// The command text this command is based on
25
    /// The command text this command is based on
...
...
123
    /// <param name="commandText">The SQL command text</param>
123
    /// <param name="commandText">The SQL command text</param>
124
    /// <param name="connection">The connection to associate with the command</param>
124
    /// <param name="connection">The connection to associate with the command</param>
125
    /// <param name="transaction">The transaction the command should be associated with</param>
125
    /// <param name="transaction">The transaction the command should be associated with</param>
126
    public SQLiteCommand(string commandText, SQLiteConnection connection, SQLiteTransaction transaction)
126
    public SQLiteCommand(string commandText, SQLiteConnection connection, SQLiteTransaction transaction)
127
    {
127
    {
128
      _statementList = null;
129
      _activeReader = null;
130
      _commandTimeout = 30;
128
      _commandTimeout = 30;
131
      _parameterCollection = new SQLiteParameterCollection(this);
129
      _parameterCollection = new SQLiteParameterCollection(this);
132
      _designTimeVisible = true;
130
      _designTimeVisible = true;
133
      _updateRowSource = UpdateRowSource.None;
131
      _updateRowSource = UpdateRowSource.None;
134
      _transaction = null;
135
132
136
      if (commandText != null)
133
      if (commandText != null)
137
        CommandText = commandText;
134
        CommandText = commandText;
138
135
139
      if (connection != null)
136
      if (connection != null)
...
...
162
        {
159
        {
163
          try
160
          try
164
          {
161
          {
165
            reader = _activeReader.Target as SQLiteDataReader;
162
            reader = _activeReader.Target as SQLiteDataReader;
166
          }
163
          }
167
          catch
164
          catch(InvalidOperationException)
168
          {
165
          {
169
          }
166
          }
170
        }
167
        }
171
168
172
        if (reader != null)
169
        if (reader != null)
...
...
192
        SQLiteDataReader reader = null;
189
        SQLiteDataReader reader = null;
193
        try
190
        try
194
        {
191
        {
195
          reader = _activeReader.Target as SQLiteDataReader;
192
          reader = _activeReader.Target as SQLiteDataReader;
196
        }
193
        }
197
        catch
194
        catch(InvalidOperationException)
198
        {
195
        {
199
        }
196
        }
200
197
201
        if (reader != null)
198
        if (reader != null)
202
          reader.Close();
199
          reader.Close();

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks