/ Check-in [fbcd7256]
Login

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

Overview
Comment:Fix a harmless compiler warning in the CSV extension.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fbcd72565f4425016cebbbf5dfd6aa510234cfb31c785cf364f04fff444aacae
User & Date: drh 2019-01-03 15:22:33
Context
2019-01-03
16:00
Fix the shmlock.test script so that it works with the Windows restriction that UnlockFile must exactly correspond to a prior LockFile. check-in: df939c89 user: drh tags: trunk
15:22
Fix a harmless compiler warning in the CSV extension. check-in: fbcd7256 user: drh tags: trunk
15:17
Fix a problem with the second and subsequent sqlite3rbu_savestate() calls made on an RBU vacuum handle. check-in: bef216df user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/misc/csv.c.

   617    617     pNew->tstFlags = tstFlags;
   618    618   #endif
   619    619     if( bHeader!=1 ){
   620    620       pNew->iStart = 0;
   621    621     }else if( pNew->zData ){
   622    622       pNew->iStart = (int)sRdr.iIn;
   623    623     }else{
   624         -    pNew->iStart = ftell(sRdr.in) - sRdr.nIn + sRdr.iIn;
          624  +    pNew->iStart = (int)(ftell(sRdr.in) - sRdr.nIn + sRdr.iIn);
   625    625     }
   626    626     csv_reader_reset(&sRdr);
   627    627     rc = sqlite3_declare_vtab(db, CSV_SCHEMA);
   628    628     if( rc ){
   629    629       csv_errmsg(&sRdr, "bad schema: '%s' - %s", CSV_SCHEMA, sqlite3_errmsg(db));
   630    630       goto csvtab_connect_error;
   631    631     }