System.Data.SQLite

Check-in [5dd7f49382]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Modify static IsAutocommit method to prevent it from passing IntPtr.Zero to the native library.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | tkt-996d13cd87
Files: files | file ages | folders
SHA1: 5dd7f49382ce53ff5b40175adf5fa23b863ac3b2
User & Date: mistachkin 2012-04-29 03:27:01.169
Context
2012-04-29
04:58
Add PoolCount property to the SQLiteConnection class to return the number of pool entries for the file name associated with the connection. check-in: 9005890cba user: mistachkin tags: tkt-996d13cd87
03:27
Modify static IsAutocommit method to prevent it from passing IntPtr.Zero to the native library. check-in: 5dd7f49382 user: mistachkin tags: tkt-996d13cd87
03:23
Revise handling of CriticalHandle derived classes to make them more thread-safe. check-in: feda13301a user: mistachkin tags: tkt-996d13cd87
Changes
Unified Diff Ignore Whitespace Patch
Changes to System.Data.SQLite/SQLiteBase.cs.
416
417
418
419
420
421
422

423
424
425
426
427
428
429
          if (n > 0) throw new SQLiteException(n, SQLiteLastError(db));
        }
      }
    }

    internal static bool IsAutocommit(IntPtr db)
    {

      return (UnsafeNativeMethods.sqlite3_get_autocommit(db) == 1);
    }

  }

  internal interface ISQLiteSchemaExtensions
  {







>







416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
          if (n > 0) throw new SQLiteException(n, SQLiteLastError(db));
        }
      }
    }

    internal static bool IsAutocommit(IntPtr db)
    {
      if (db == IntPtr.Zero) return false;
      return (UnsafeNativeMethods.sqlite3_get_autocommit(db) == 1);
    }

  }

  internal interface ISQLiteSchemaExtensions
  {