System.Data.SQLite
Check-in [8ad750184a]
Not logged in

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

Overview
Comment:Fix GetValue to retrieve guids properly
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | sourceforge
Files: files | file ages | folders
SHA1: 8ad750184a53b89086b2058fae3c5f5b74aafe71
User & Date: rmsimpson 2006-03-27 17:05:45
Context
2006-04-11
18:02
64-bit fixes check-in: 5dea167156 user: rmsimpson tags: sourceforge
2006-03-27
17:05
Fix GetValue to retrieve guids properly check-in: 8ad750184a user: rmsimpson tags: sourceforge
2006-03-20
17:55
Fix relative paths in Compact Framework check-in: cc914390be user: rmsimpson tags: sourceforge
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

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

148
149
150
151
152
153
154



155
156
157
158
159
160
161
        case TypeAffinity.DateTime:
          return GetDateTime(stmt, index);
        case TypeAffinity.Double:
          return Convert.ChangeType(GetDouble(stmt, index), t, null);
        case TypeAffinity.Int64:
          return Convert.ChangeType(GetInt64(stmt, index), t, null);
        default:



          return GetText(stmt, index);
      }
    }

    internal abstract int  CreateCollation(string strCollation, SQLiteCollation func);
    internal abstract int  CreateFunction(string strFunction, int nArgs, SQLiteCallback func, SQLiteCallback funcstep, SQLiteCallback funcfinal);
    internal abstract void FreeFunction(int nCookie);







>
>
>







148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
        case TypeAffinity.DateTime:
          return GetDateTime(stmt, index);
        case TypeAffinity.Double:
          return Convert.ChangeType(GetDouble(stmt, index), t, null);
        case TypeAffinity.Int64:
          return Convert.ChangeType(GetInt64(stmt, index), t, null);
        default:
          if (typ.Type == DbType.Guid)
            return new Guid(GetText(stmt, index));

          return GetText(stmt, index);
      }
    }

    internal abstract int  CreateCollation(string strCollation, SQLiteCollation func);
    internal abstract int  CreateFunction(string strFunction, int nArgs, SQLiteCallback func, SQLiteCallback funcstep, SQLiteCallback funcfinal);
    internal abstract void FreeFunction(int nCookie);