source: trunk/dports/databases/db53/files/patch-sqlite.diff

Last change on this file was 91156, checked in by afb@…, 5 years ago

db52: port upgrade, changed download locations again

File size: 1.6 KB
  • lang/sql/sqlite/src/main.c

    old new int sqlite3_test_control(int op, ...){ 
    26472647    }
    26482648#endif
    26492649
     2650#ifdef SQLITE_TESTCTRL_PGHDRSZ
    26502651    /* sqlite3_test_control(SQLITE_TESTCTRL_PGHDRSZ)
    26512652    **
    26522653    ** Return the size of a pcache header in bytes.
    int sqlite3_test_control(int op, ...){ 
    26552656      rc = sizeof(PgHdr);
    26562657      break;
    26572658    }
     2659#endif
    26582660
    26592661    /* sqlite3_test_control(SQLITE_TESTCTRL_SCRATCHMALLOC, sz, &pNew, pFree);
    26602662    **
  • lang/sql/sqlite/src/shell.c

    old new static int do_meta_command(char *zLine,  
    22382238      { "reserve",               SQLITE_TESTCTRL_RESERVE                },
    22392239      { "optimizations",         SQLITE_TESTCTRL_OPTIMIZATIONS          },
    22402240      { "iskeyword",             SQLITE_TESTCTRL_ISKEYWORD              },
     2241#ifdef SQLITE_TESTCTRL_PGHDRSZ
    22412242      { "pghdrsz",               SQLITE_TESTCTRL_PGHDRSZ                },
     2243#endif
    22422244      { "scratchmalloc",         SQLITE_TESTCTRL_SCRATCHMALLOC          },
    22432245    };
    22442246    int testctrl = -1;
    static int do_meta_command(char *zLine,  
    22832285        case SQLITE_TESTCTRL_PRNG_SAVE:           
    22842286        case SQLITE_TESTCTRL_PRNG_RESTORE:       
    22852287        case SQLITE_TESTCTRL_PRNG_RESET:
     2288#ifdef SQLITE_TESTCTRL_PGHDRSZ
    22862289        case SQLITE_TESTCTRL_PGHDRSZ:             
     2290#endif
    22872291          if( nArg==2 ){
    22882292            rc = sqlite3_test_control(testctrl);
    22892293            printf("%d (0x%08x)\n", rc, rc);
Note: See TracBrowser for help on using the repository browser.