/ Check-in [3e1d55f0]
Login

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

Overview
Comment:Remove an unreachable conditional inserted by the previous check-in.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3e1d55f0bd84810a035bd6c54583eb373784a9a3
User & Date: drh 2013-12-11 12:02:55
Context
2013-12-11
14:00
Fix a bug in the shell ".import" command: Do not end the field when an escaped double-quote occurs at the end of a CRNL line. check-in: 5e239ecd user: drh tags: trunk
12:02
Remove an unreachable conditional inserted by the previous check-in. check-in: 3e1d55f0 user: drh tags: trunk
11:00
Fix harmless compiler warnings. check-in: a7e5fcd6 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbetrace.c.

    86     86     db = p->db;
    87     87     sqlite3StrAccumInit(&out, zBase, sizeof(zBase), 
    88     88                         db->aLimit[SQLITE_LIMIT_LENGTH]);
    89     89     out.db = db;
    90     90     if( db->nVdbeExec>1 ){
    91     91       while( *zRawSql ){
    92     92         const char *zStart = zRawSql;
    93         -      int n;
    94     93         while( *(zRawSql++)!='\n' && *zRawSql );
    95     94         sqlite3StrAccumAppend(&out, "-- ", 3);
    96         -      n = (int)(zRawSql - zStart);
    97         -      if( n ) sqlite3StrAccumAppend(&out, zStart, n);
           95  +      assert( (zRawSql - zStart) > 0 );
           96  +      sqlite3StrAccumAppend(&out, zStart, (int)(zRawSql-zStart));
    98     97       }
    99     98     }else{
   100     99       while( zRawSql[0] ){
   101    100         n = findNextHostParameter(zRawSql, &nToken);
   102    101         assert( n>0 );
   103    102         sqlite3StrAccumAppend(&out, zRawSql, n);
   104    103         zRawSql += n;