System.Data.SQLite

Check-in [5804b32b6d]
Login

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

Overview
Comment:Minor reordering of conditionals in the InvokeReadValueCallback method.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | customDataTypes
Files: files | file ages | folders
SHA1: 5804b32b6dae0b66321b3b35e83c3523e69fe130
User & Date: mistachkin 2016-06-19 03:06:14.927
Context
2016-06-19
03:40
Integrate the new custom database type callbacks into the statement class. Add TypeName property to the SQLiteParameter class and make use of it. Add UseParameterDbTypeForTypeName connection flag. Update version history docs. check-in: 5973dcfa17 user: mistachkin tags: customDataTypes
03:06
Minor reordering of conditionals in the InvokeReadValueCallback method. check-in: 5804b32b6d user: mistachkin tags: customDataTypes
03:03
Improve coding style of the previous check-in and make it compile on the .NET Compact Framework. check-in: 3d482302d1 user: mistachkin tags: customDataTypes
Changes
Unified Diff Ignore Whitespace Patch
Changes to System.Data.SQLite/SQLiteDataReader.cs.
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467





468
469
470
471
472
473
474
        )
    {
        complete = false;
        _flags &= ~SQLiteConnectionFlags.UseConnectionReadValueCallbacks;

        try
        {
            SQLiteConnection connection = GetConnection(this);

            if (connection == null)
                return;

            string typeName = GetDataTypeName(index);

            if (typeName == null)
                return;






            SQLiteTypeCallbacks callbacks;

            if (!connection.TryGetTypeCallbacks(typeName, out callbacks) ||
                (callbacks == null))
            {
                return;







<
<
<
<
<




>
>
>
>
>







452
453
454
455
456
457
458





459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
        )
    {
        complete = false;
        _flags &= ~SQLiteConnectionFlags.UseConnectionReadValueCallbacks;

        try
        {





            string typeName = GetDataTypeName(index);

            if (typeName == null)
                return;

            SQLiteConnection connection = GetConnection(this);

            if (connection == null)
                return;

            SQLiteTypeCallbacks callbacks;

            if (!connection.TryGetTypeCallbacks(typeName, out callbacks) ||
                (callbacks == null))
            {
                return;