System.Data.SQLite
Check-in [b0f8d0fe4e]
Not logged in

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

Overview
Comment:Add more testing of the SQLiteConnection.ChangePassword method.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b0f8d0fe4ee277f0cca1d802c66bf315cdb88d97
User & Date: mistachkin 2011-10-23 02:32:26
Context
2011-10-23
02:33
Add the external tools needed to build the documentation. check-in: 418f5dab8c user: mistachkin tags: trunk
02:32
Add more testing of the SQLiteConnection.ChangePassword method. check-in: b0f8d0fe4e user: mistachkin tags: trunk
2011-10-20
14:04
Compile error fixes for the Compact Framework. Also, switch to using the .NET Framework 4.0 Client Profile where applicable. Fix for ticket [566f1ad1e4]. check-in: f2b84d6d25 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/TestCases.cs.

   107    107               cnn.SetPassword("mypassword");
   108    108               cnn.Open();
   109    109   
   110    110               // Decrpyt database
   111    111               cnn.ChangePassword("");
   112    112   
   113    113               cnn.Close();
          114  +
          115  +            ///////////////////////////////////////////////////////////////////
          116  +
          117  +            cnn.Open();
          118  +
          119  +            // Re-Encrypts the database. The connection remains valid and usable afterwards.
          120  +            cnn.ChangePassword("mypassword");
          121  +            cnn.ChangePassword("mynewerpassword");
          122  +
          123  +            maydroptable.Add("ChangePasswordTest2");
          124  +            if (cnn.State != ConnectionState.Open) cnn.Open();
          125  +            using (DbCommand cmd = cnn.CreateCommand())
          126  +            {
          127  +                cmd.CommandText = "CREATE TABLE ChangePasswordTest2(ID int primary key)";
          128  +                cmd.ExecuteNonQuery();
          129  +            }
          130  +
          131  +            // Decrpyt database
          132  +            cnn.ChangePassword("");
          133  +            cnn.Close();
          134  +
          135  +            ///////////////////////////////////////////////////////////////////
   114    136   
   115    137               // Try opening now without password
   116    138               cnn.Open();
   117    139               cnn.Close();
   118    140   
   119    141           }
   120    142       }