/ Check-in [2e35eb6b]
Login

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

Overview
Comment:Fix an integer size mismatch problem in test_bestindex.c
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:2e35eb6b7464455467c868adfbcaad4da16d3207
User & Date: drh 2016-03-05 14:19:32
Context
2016-03-05
15:03
Work around (incorrect) ASAN warnings in memjournal.c. check-in: 4de09777 user: drh tags: trunk
14:19
Fix an integer size mismatch problem in test_bestindex.c check-in: 2e35eb6b user: drh tags: trunk
14:00
Fix an incorrect #ifdef on sqlite3LogEstToInt(). check-in: dca7b233 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/test_bestindex.c.

450
451
452
453
454
455
456

457

458
459
460
461
462
463
464
        }else
        if( sqlite3_stricmp("idxstr", zCmd)==0 ){
          sqlite3_free(pIdxInfo->idxStr);
          pIdxInfo->idxStr = sqlite3_mprintf("%s", Tcl_GetString(p));
          pIdxInfo->needToFreeIdxStr = 1;
        }else
        if( sqlite3_stricmp("rows", zCmd)==0 ){

          rc = Tcl_GetWideIntFromObj(interp, p, &pIdxInfo->estimatedRows);

        }else
        if( sqlite3_stricmp("use", zCmd)==0 
         || sqlite3_stricmp("omit", zCmd)==0 
        ){
          int iCons;
          rc = Tcl_GetIntFromObj(interp, p, &iCons);
          if( rc==SQLITE_OK ){







>
|
>







450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
        }else
        if( sqlite3_stricmp("idxstr", zCmd)==0 ){
          sqlite3_free(pIdxInfo->idxStr);
          pIdxInfo->idxStr = sqlite3_mprintf("%s", Tcl_GetString(p));
          pIdxInfo->needToFreeIdxStr = 1;
        }else
        if( sqlite3_stricmp("rows", zCmd)==0 ){
          Tcl_WideInt x = 0;
          rc = Tcl_GetWideIntFromObj(interp, p, &x);
          pIdxInfo->estimatedRows = (tRowcnt)x;
        }else
        if( sqlite3_stricmp("use", zCmd)==0 
         || sqlite3_stricmp("omit", zCmd)==0 
        ){
          int iCons;
          rc = Tcl_GetIntFromObj(interp, p, &iCons);
          if( rc==SQLITE_OK ){