internal static void Dispose(this SqliteStatementHandle statement)
 {
     try
     {
         SQLiteBase.FinalizeStatement(statement);
     }
     catch (SqliteException)
     {
     }
 }
示例#2
0
 protected override bool ReleaseHandle()
 {
     try
     {
         SQLiteBase.FinalizeStatement(this);
     }
     catch (SqliteException)
     {
     }
     return(true);
 }
示例#3
0
 protected override bool ReleaseHandle()
 {
     try
     {
         lock (this._cnn)
         {
             SQLiteBase.FinalizeStatement(this);
             Interlocked.Exchange(ref this.handle, IntPtr.Zero);
         }
     }
     catch (SqliteException)
     {
     }
     finally
     {
         this.SetHandleAsInvalid();
     }
     return(true);
 }