1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

Fix a bug in test_fs.c that occurs when the first component of a path contains

a GLOB or LIKE escape character.

FossilOrigin-Name: 73c70590d7689806901378cd2a7e167ec4339f886031369266e07868acd23b93
This commit is contained in:
dan
2017-06-05 16:33:53 +00:00
parent a4327e65bb
commit b1d66c5986
3 changed files with 9 additions and 8 deletions

View File

@@ -545,6 +545,7 @@ static int fstreeFilter(
zDir = zQuery;
}
}
if( nDir==0 ) nDir = 1;
sqlite3_bind_text(pCsr->pStmt, 1, zDir, nDir, SQLITE_TRANSIENT);
sqlite3_bind_text(pCsr->pStmt, 2, zRoot, nRoot, SQLITE_TRANSIENT);