/ Check-in [60bbca2b]
Login

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

Overview
Comment:Minor style improvements.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 60bbca2b9a591800cd8e7b374e62d75b1df0e8fd2d2f71f9b4d5fd044da78be0
User & Date: mistachkin 2018-08-08 20:46:35
Context
2018-08-09
18:36
When a column must be a constant due to WHERE clause and the value of that column is being coded as a constant, make sure the affinity is correct. check-in: 7404ea83 user: drh tags: trunk
2018-08-08
20:46
Minor style improvements. check-in: 60bbca2b user: mistachkin tags: trunk
2018-08-06
02:08
Enhance the edit() function so that it converts text from \r\n back into \n only if the original unedited copy contained no \r\n values. check-in: 20c995d3 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/main.c.

  1036   1036   static void disconnectAllVtab(sqlite3 *db){
  1037   1037   #ifndef SQLITE_OMIT_VIRTUALTABLE
  1038   1038     int i;
  1039   1039     HashElem *p;
  1040   1040     sqlite3BtreeEnterAll(db);
  1041   1041     for(i=0; i<db->nDb; i++){
  1042   1042       Schema *pSchema = db->aDb[i].pSchema;
  1043         -    if( db->aDb[i].pSchema ){
         1043  +    if( pSchema ){
  1044   1044         for(p=sqliteHashFirst(&pSchema->tblHash); p; p=sqliteHashNext(p)){
  1045   1045           Table *pTab = (Table *)sqliteHashData(p);
  1046   1046           if( IsVirtual(pTab) ) sqlite3VtabDisconnect(db, pTab);
  1047   1047         }
  1048   1048       }
  1049   1049     }
  1050   1050     for(p=sqliteHashFirst(&db->aModule); p; p=sqliteHashNext(p)){

Changes to src/wal.c.

  1831   1831         rc = walIteratorInit(pWal, pInfo->nBackfill, &pIter);
  1832   1832         assert( rc==SQLITE_OK || pIter==0 );
  1833   1833       }
  1834   1834   
  1835   1835       if( pIter
  1836   1836        && (rc = walBusyLock(pWal, xBusy, pBusyArg, WAL_READ_LOCK(0),1))==SQLITE_OK
  1837   1837       ){
  1838         -      i64 nSize;                    /* Current size of database file */
  1839   1838         u32 nBackfill = pInfo->nBackfill;
  1840   1839   
  1841   1840         pInfo->nBackfillAttempted = mxSafeFrame;
  1842   1841   
  1843   1842         /* Sync the WAL to disk */
  1844   1843         rc = sqlite3OsSync(pWal->pWalFd, CKPT_SYNC_FLAGS(sync_flags));
  1845   1844   
  1846   1845         /* If the database may grow as a result of this checkpoint, hint
  1847   1846         ** about the eventual size of the db file to the VFS layer.
  1848   1847         */
  1849   1848         if( rc==SQLITE_OK ){
  1850   1849           i64 nReq = ((i64)mxPage * szPage);
         1850  +        i64 nSize;                    /* Current size of database file */
  1851   1851           rc = sqlite3OsFileSize(pWal->pDbFd, &nSize);
  1852   1852           if( rc==SQLITE_OK && nSize<nReq ){
  1853   1853             sqlite3OsFileControlHint(pWal->pDbFd, SQLITE_FCNTL_SIZE_HINT, &nReq);
  1854   1854           }
  1855   1855         }
  1856   1856   
  1857   1857