/ Check-in [73c70590]
Login

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

Overview
Comment:Fix a bug in test_fs.c that occurs when the first component of a path contains a GLOB or LIKE escape character.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 73c70590d7689806901378cd2a7e167ec4339f886031369266e07868acd23b93
User & Date: dan 2017-06-05 16:33:53
Context
2017-06-05
19:20
Fix a subtle bug in the remember UDF of the kvtest.exe utility program. check-in: 9eea3670 user: drh tags: trunk
16:33
Fix a bug in test_fs.c that occurs when the first component of a path contains a GLOB or LIKE escape character. check-in: 73c70590 user: dan tags: trunk
13:28
For the kvtest utility, add the --vacuum option to "kvtest stat" and also run PRAGMA integrity_check with "kvtest stat". check-in: f3c25df4 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_fs.c.

   541    541         for(i=nPrefix; zQuery[i]; i++){
   542    542           if( zQuery[i]==aWild[0] || zQuery[i]==aWild[1] ) break;
   543    543           if( zQuery[i]=='/' ) nDir = i;
   544    544         }
   545    545         zDir = zQuery;
   546    546       }
   547    547     }
          548  +  if( nDir==0 ) nDir = 1;
   548    549   
   549    550     sqlite3_bind_text(pCsr->pStmt, 1, zDir, nDir, SQLITE_TRANSIENT);
   550    551     sqlite3_bind_text(pCsr->pStmt, 2, zRoot, nRoot, SQLITE_TRANSIENT);
   551    552     sqlite3_bind_text(pCsr->pStmt, 3, zPrefix, nPrefix, SQLITE_TRANSIENT);
   552    553   
   553    554   #if SQLITE_OS_WIN
   554    555     sqlite3_free(zPrefix);