SQLite
Check-in [e54dded2]
Not logged in
Overview
SHA1 Hash:e54dded2012f0ab486ee138e9bd57c528af33980
Date: 2014-04-04 22:44:59
User: drh
Comment:Fix harmless compiler warnings.
Tags And Properties
Context
2014-04-14
19:23
[cb0ab20c] Allow the sorter to begin returning data to the VDBE as soon as it is available, instead of waiting until all keys have been sorted. (user: dan, tags: threads)
2014-04-09
20:04
[f9d5e09a] Experimental multi-threaded sorting changes to allow the sorter to begin returning items to the VDBE before all data is sorted. (user: dan, tags: threads-experimental)
2014-04-07
18:44
[cbfc0f6d] Closed-Leaf: Experimental multi-threaded sorting changes to begin merging PMAs before SorterRewind() is called. (user: dan, tags: abandoned)
2014-04-04
22:44
[e54dded2] Fix harmless compiler warnings. (user: drh, tags: threads)
21:40
[5e3dfa27] Fix typo in a Windows threading support routine. (user: mistachkin, tags: threads)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/build.c

3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
    }
    if( j>=pTab->nCol ){
      sqlite3ErrorMsg(pParse, "table %s has no column named %s",
        pTab->zName, zColName);
      pParse->checkSchema = 1;
      goto exit_create_index;
    }
    assert( pTab->nCol<=0x7fff && j<=0x7fff );
    pIndex->aiColumn[i] = (i16)j;
    if( pListItem->pExpr ){
      int nColl;
      assert( pListItem->pExpr->op==TK_COLLATE );
      zColl = pListItem->pExpr->u.zToken;
      nColl = sqlite3Strlen30(zColl) + 1;
      assert( nExtra>=nColl );







|







3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
    }
    if( j>=pTab->nCol ){
      sqlite3ErrorMsg(pParse, "table %s has no column named %s",
        pTab->zName, zColName);
      pParse->checkSchema = 1;
      goto exit_create_index;
    }
    assert( j<=0x7fff );
    pIndex->aiColumn[i] = (i16)j;
    if( pListItem->pExpr ){
      int nColl;
      assert( pListItem->pExpr->op==TK_COLLATE );
      zColl = pListItem->pExpr->u.zToken;
      nColl = sqlite3Strlen30(zColl) + 1;
      assert( nExtra>=nColl );

Changes to src/sqliteInt.h

3648
3649
3650
3651
3652
3653
3654

3655
3656

3657
3658
3659
3660
3661
3662
3663
3664
3665
#define MEMTYPE_SCRATCH    0x04  /* Scratch allocations */
#define MEMTYPE_PCACHE     0x08  /* Page cache allocations */
#define MEMTYPE_DB         0x10  /* Uses sqlite3DbMalloc, not sqlite_malloc */

/*
** Threading interface
*/

int sqlite3ThreadCreate(SQLiteThread**,void*(*)(void*),void*);
int sqlite3ThreadJoin(SQLiteThread*, void**);


/*
** Win32 interface
*/
#if SQLITE_OS_WIN
  DWORD sqlite3Win32Wait(HANDLE hObject);
#endif

#endif /* _SQLITEINT_H_ */







>


>









3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
#define MEMTYPE_SCRATCH    0x04  /* Scratch allocations */
#define MEMTYPE_PCACHE     0x08  /* Page cache allocations */
#define MEMTYPE_DB         0x10  /* Uses sqlite3DbMalloc, not sqlite_malloc */

/*
** Threading interface
*/
#if SQLITE_MAX_WORKER_THREADS>0
int sqlite3ThreadCreate(SQLiteThread**,void*(*)(void*),void*);
int sqlite3ThreadJoin(SQLiteThread*, void**);
#endif

/*
** Win32 interface
*/
#if SQLITE_OS_WIN
  DWORD sqlite3Win32Wait(HANDLE hObject);
#endif

#endif /* _SQLITEINT_H_ */