System.Data.SQLite
Check-in [5ba66c476a]
Not logged in

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

Overview
Comment:Prevent an invalid boolean argument from causing an exception for the .NET Compact Framework test project.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5ba66c476a51b9fb42a79827cb1a17d9e88d667f
User & Date: mistachkin 2013-02-21 07:03:30
Context
2013-02-25
23:37
Adjust the Fossil ignore-glob settings file. check-in: 101f077d2c user: mistachkin tags: trunk
2013-02-21
07:03
Prevent an invalid boolean argument from causing an exception for the .NET Compact Framework test project. check-in: 5ba66c476a user: mistachkin tags: trunk
06:44
Fix typo in docs for obtaining source. check-in: 5b635e29a5 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to testce/Program.cs.

30
31
32
33
34
35
36

37

38
39
40
41
42
43
44
      bool autoClose = false;
      int exitCode = 2; /* INCOMPLETE */
      Assembly assembly = Assembly.GetExecutingAssembly();
      AssemblyName assemblyName = assembly.GetName();
      string directory = Path.GetDirectoryName(assemblyName.CodeBase);

      if (args.Length > 0)

          autoClose = bool.Parse(args[0]);


      try { File.Delete(directory + "\\test.db"); } catch { }

      SQLiteFunction.RegisterFunction(typeof(TestFunc));
      SQLiteFunction.RegisterFunction(typeof(MyCount));
      SQLiteFunction.RegisterFunction(typeof(MySequence));








>
|
>







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
      bool autoClose = false;
      int exitCode = 2; /* INCOMPLETE */
      Assembly assembly = Assembly.GetExecutingAssembly();
      AssemblyName assemblyName = assembly.GetName();
      string directory = Path.GetDirectoryName(assemblyName.CodeBase);

      if (args.Length > 0)
      {
          try { autoClose = bool.Parse(args[0]); } catch { }
      }

      try { File.Delete(directory + "\\test.db"); } catch { }

      SQLiteFunction.RegisterFunction(typeof(TestFunc));
      SQLiteFunction.RegisterFunction(typeof(MyCount));
      SQLiteFunction.RegisterFunction(typeof(MySequence));