System.Data.SQLite

Check-in [0613f370e4]
Login

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

Overview
Comment:Improve consistency of error message.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0613f370e461fa8f4e1dbb7a0e9c1ab3491f36d8
User & Date: mistachkin 2013-07-17 10:14:42.812
Context
2013-07-17
18:28
Add cursor parameter to the protected GetStringFromObject and GetRowIdFromObject methods of the SQLiteModuleEnumerable class. check-in: d7a3a148c5 user: mistachkin tags: trunk
10:14
Improve consistency of error message. check-in: 0613f370e4 user: mistachkin tags: trunk
10:03
Add Index property and BestIndex method to the SQLiteVirtualTable class. Make the EstimatedCost property of the SQLiteIndexOutputs class nullable. Refactor BestIndex handling performed by the SQLiteModuleEnumerable class. check-in: dd7bbf3a2c user: mistachkin tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to System.Data.SQLite/SQLiteModuleEnumerable.cs.
553
554
555
556
557
558
559
560
561

562
563
564
565
566
567
568
            SQLiteIndex index
            )
        {
            CheckDisposed();

            if (!table.BestIndex(index))
            {
                SetTableError(table,
                    "failed to select best index for virtual table");


                return SQLiteErrorCode.Error;
            }

            return SQLiteErrorCode.Ok;
        }








|
|
>







553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
            SQLiteIndex index
            )
        {
            CheckDisposed();

            if (!table.BestIndex(index))
            {
                SetTableError(table, String.Format(CultureInfo.CurrentCulture,
                    "failed to select best index for virtual table \"{0}\"",
                    table.TableName));

                return SQLiteErrorCode.Error;
            }

            return SQLiteErrorCode.Ok;
        }