in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

Connection string bug in SQLiteConnection?

Last post 12-01-2009 1:47 PM by Paul. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 12-01-2009 1:47 PM

    • Paul
    • Top 50 Contributor
    • Joined on 09-12-2007
    • Posts 26

    Connection string bug in SQLiteConnection?

    In this code:

     

                defValue = FindKey(opts, "Journal Mode", "Delete");
                if (String.Compare(defValue, "Default", StringComparison.OrdinalIgnoreCase) != 0)
                {
                  cmd.CommandText = String.Format(CultureInfo.InvariantCulture, "PRAGMA journal_mode={0}", defValue);
                  cmd.ExecuteNonQuery();
                }

     

    shouldn't "Default" be "Delete"? There might be some other compares that are wrong.

     

     

Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems