System.Data.SQLite

Check-in [f9367601a0]
Login

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

Overview
Comment:Check for a valid row in the GetValue method of the SQLiteDataReader class.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f9367601a065233c37d0048965164d3be2d14eb2
User & Date: mistachkin 2013-03-15 00:23:11.740
Context
2013-03-15
00:36
Update version history docs. check-in: af4af7e39f user: mistachkin tags: trunk
00:23
Check for a valid row in the GetValue method of the SQLiteDataReader class. check-in: f9367601a0 user: mistachkin tags: trunk
2013-03-14
08:49
Fix minor typos in names of the .NET Compact Framework installation cabinet files. check-in: e8c39e2bc8 user: mistachkin tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to System.Data.SQLite/SQLiteDataReader.cs.
1113
1114
1115
1116
1117
1118
1119

1120
1121
1122
1123
1124
1125
1126
    /// Retrieves the column as an object corresponding to the underlying datatype of the column
    /// </summary>
    /// <param name="i">The index of the column to retrieve</param>
    /// <returns>object</returns>
    public override object GetValue(int i)
    {
      CheckDisposed();


      if (i >= VisibleFieldCount && _keyInfo != null)
        return _keyInfo.GetValue(i - VisibleFieldCount);

      SQLiteType typ = GetSQLiteType(i);

      return _activeStatement._sql.GetValue(_activeStatement, i, typ);







>







1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
    /// Retrieves the column as an object corresponding to the underlying datatype of the column
    /// </summary>
    /// <param name="i">The index of the column to retrieve</param>
    /// <returns>object</returns>
    public override object GetValue(int i)
    {
      CheckDisposed();
      CheckValidRow();

      if (i >= VisibleFieldCount && _keyInfo != null)
        return _keyInfo.GetValue(i - VisibleFieldCount);

      SQLiteType typ = GetSQLiteType(i);

      return _activeStatement._sql.GetValue(_activeStatement, i, typ);