sqlite3_finalize() private method

private sqlite3_finalize ( IntPtr stmt ) : int
stmt IntPtr
return int
Ejemplo n.º 1
0
 internal static void FinalizeStatement(SqliteStatementHandle stmt)
 {
     lock (_lock)
     {
         int n = UnsafeNativeMethods.sqlite3_finalize(stmt);
         if (n > 0)
         {
             throw new SqliteException(n, null);
         }
     }
 }
Ejemplo n.º 2
0
 internal override void FinalizeStatement(SqliteStatement stmt)
 {
     if (stmt._sqlite_stmt != IntPtr.Zero)
     {
         int n = UnsafeNativeMethods.sqlite3_finalize(stmt._sqlite_stmt);
         if (n > 0)
         {
             throw new SqliteException(n, SqliteLastError());
         }
     }
     stmt._sqlite_stmt = IntPtr.Zero;
 }
Ejemplo n.º 3
0
        internal static void FinalizeStatement(SqliteStatementHandle stmt)
        {
            lock (_lock)
            {
#if !SQLITE_STANDARD
                int n = UnsafeNativeMethods.sqlite3_finalize_interop(stmt);
#else
                int n = UnsafeNativeMethods.sqlite3_finalize(stmt);
#endif
                if (n > 0)
                {
                    throw new SqliteException(n, null);
                }
            }
        }