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

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

Overview
Comment:Handle a null return value from the SQLiteConvert.NewSplit method.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d9f1267d10faf2983d87621c25564477ed329977
User & Date: mistachkin 2013-05-26 23:54:19
Context
2013-05-27
21:23
If the connection string cannot be parsed, throw an exception with an error message describing the problem. check-in: 89b5dbd444 user: mistachkin tags: trunk
2013-05-26
23:54
Handle a null return value from the SQLiteConvert.NewSplit method. check-in: d9f1267d10 user: mistachkin tags: trunk
2013-05-25
21:22
Update to embedded doc comments on the Data Source property of the connection string. check-in: 28de1a422e user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

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

1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
      string s = connectionString;
      int n;
      SortedList<string, string> ls = new SortedList<string, string>(StringComparer.OrdinalIgnoreCase);

      // First split into semi-colon delimited values.
      string[] arParts = SQLiteConvert.NewSplit(s, ';', true);

      int x = arParts.Length;
      // For each semi-colon piece, split into key and value pairs by the presence of the = sign
      for (n = 0; n < x; n++)
      {
        if (arParts[n] == null)
          continue;

        arParts[n] = arParts[n].Trim();







|







1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
      string s = connectionString;
      int n;
      SortedList<string, string> ls = new SortedList<string, string>(StringComparer.OrdinalIgnoreCase);

      // First split into semi-colon delimited values.
      string[] arParts = SQLiteConvert.NewSplit(s, ';', true);

      int x = (arParts != null) ? arParts.Length : 0;
      // For each semi-colon piece, split into key and value pairs by the presence of the = sign
      for (n = 0; n < x; n++)
      {
        if (arParts[n] == null)
          continue;

        arParts[n] = arParts[n].Trim();