System.Data.SQLite
Check-in [72714fd613]
Not logged in

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

Overview
Comment:Adjust naming for things related to the new xBestIndex idxFlags field for consistency.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 72714fd613a39317cbb177410bbe5fac16182aa0
User & Date: mistachkin 2015-10-06 00:40:33
Context
2015-10-06
01:47
Update SQLite core library to the latest trunk code. check-in: 619cef05bd user: mistachkin tags: trunk
00:40
Adjust naming for things related to the new xBestIndex idxFlags field for consistency. check-in: 72714fd613 user: mistachkin tags: trunk
2015-10-02
19:21
Update Eagle script library in externals to the latest code. check-in: ada723a97c user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

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

1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
....
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
        ///////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Determines if the native flags field can be used, based on the
        /// available version of the SQLite core library.
        /// </summary>
        /// <returns>
        /// Non-zero if the <see cref="Flags" /> property is supported by the
        /// SQLite core library.
        /// </returns>
        public bool CanUseFlags()
        {
            if (UnsafeNativeMethods.sqlite3_libversion_number() >= 3008012)
                return true;

            return false;
        }

................................................................................
            if (index.Outputs.CanUseEstimatedRows() &&
                index.Outputs.EstimatedRows.HasValue)
            {
                SQLiteMarshal.WriteInt64(pIndex, offset,
                    index.Outputs.EstimatedRows.GetValueOrDefault());
            }

            if (index.Outputs.CanUseFlags() &&
                index.Outputs.IdxFlags.HasValue)
            {
                SQLiteMarshal.WriteInt32(pIndex, offset,
                   (int)index.Outputs.IdxFlags.GetValueOrDefault());
            }
        }
        #endregion







|
|

|







 







|







1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
....
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
        ///////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Determines if the native flags field can be used, based on the
        /// available version of the SQLite core library.
        /// </summary>
        /// <returns>
        /// Non-zero if the <see cref="IdxFlags" /> property is supported by
        /// the SQLite core library.
        /// </returns>
        public bool CanUseIdxFlags()
        {
            if (UnsafeNativeMethods.sqlite3_libversion_number() >= 3008012)
                return true;

            return false;
        }

................................................................................
            if (index.Outputs.CanUseEstimatedRows() &&
                index.Outputs.EstimatedRows.HasValue)
            {
                SQLiteMarshal.WriteInt64(pIndex, offset,
                    index.Outputs.EstimatedRows.GetValueOrDefault());
            }

            if (index.Outputs.CanUseIdxFlags() &&
                index.Outputs.IdxFlags.HasValue)
            {
                SQLiteMarshal.WriteInt32(pIndex, offset,
                   (int)index.Outputs.IdxFlags.GetValueOrDefault());
            }
        }
        #endregion