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

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

Overview
Comment:Also allow forward slash when converting from a relative path on Windows CE.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ebf069c623a70451ecb43f752201ea6ee499dd90
User & Date: mistachkin 2011-11-12 07:00:54
Context
2011-11-12
07:05
Modify unit test infrastructure to better support running test files that exist outside the source tree. check-in: 176935a5e1 user: mistachkin tags: trunk
07:00
Also allow forward slash when converting from a relative path on Windows CE. check-in: ebf069c623 user: mistachkin tags: trunk
05:46
Silence compiler warning about taking the address of a DLL-imported function. check-in: 70655d35b0 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to System.Data.SQLite/SQLiteConnection.cs.

   815    815         }
   816    816   
   817    817         if (String.Compare(fileName, ":MEMORY:", StringComparison.OrdinalIgnoreCase) == 0)
   818    818           fileName = ":memory:";
   819    819         else
   820    820         {
   821    821   #if PLATFORM_COMPACTFRAMEWORK
   822         -       if (fileName.StartsWith(".\\"))
          822  +       if (fileName.StartsWith("./") || fileName.StartsWith(".\\"))
   823    823            fileName = Path.GetDirectoryName(System.Reflection.Assembly.GetCallingAssembly().GetName().CodeBase) + fileName.Substring(1);
   824    824   #endif
   825    825          fileName = ExpandFileName(fileName);
   826    826         }
   827    827         try
   828    828         {
   829    829           bool usePooling = (SQLiteConvert.ToBoolean(FindKey(opts, "Pooling", Boolean.FalseString)) == true);