Skip to content

Commit

Permalink
Fix RBU so that it builds with -DSQLITE_ENABLE_8_3_NAMES.
Browse files Browse the repository at this point in the history
Fix "PRAGMA compile_options" for SQLITE_ENABLE_8_3_NAMES such that it reports
the numeric setting: "1" or "2".
  • Loading branch information
D. Richard Hipp committed Jun 13, 2016
1 parent 639b97d commit d1dcba8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ext/rbu/sqlite3rbu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2507,9 +2507,9 @@ static void rbuFileSuffix3(const char *zBase, char *z){
#endif
{
int i, sz;
sz = sqlite3Strlen30(z);
sz = (int)strlen(z)&0xffffff;
for(i=sz-1; i>0 && z[i]!='/' && z[i]!='.'; i--){}
if( z[i]=='.' && ALWAYS(sz>i+4) ) memmove(&z[i+1], &z[sz-3], 4);
if( z[i]=='.' && sz>i+4 ) memmove(&z[i+1], &z[sz-3], 4);
}
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion src/ctime.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static const char * const azCompileOpt[] = {
"DISABLE_LFS",
#endif
#if SQLITE_ENABLE_8_3_NAMES
"ENABLE_8_3_NAMES",
"ENABLE_8_3_NAMES=" CTIMEOPT_VAL(SQLITE_ENABLE_8_3_NAMES),
#endif
#if SQLITE_ENABLE_API_ARMOR
"ENABLE_API_ARMOR",
Expand Down

0 comments on commit d1dcba8

Please sign in to comment.