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

Merge latest fixes from the trunk.

FossilOrigin-Name: 6b6dcd4cc75317628072abac7c58b41361cc72b4
This commit is contained in:
dan
2014-01-29 14:21:31 +00:00
5 changed files with 18 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
C Bring\sin\sthe\slatest\supdates\sfrom\strunk. C Merge\slatest\sfixes\sfrom\sthe\strunk.
D 2014-01-28T18:06:17.362 D 2014-01-29T14:21:31.405
F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
F Makefile.in e4ee6d36cdf6136aee0158675a3b24dd3bf31a5a F Makefile.in e4ee6d36cdf6136aee0158675a3b24dd3bf31a5a
F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -188,8 +188,8 @@ F src/callback.c 174e3c8656bc29f91d710ab61550d16eea34be98
F src/complete.c dc1d136c0feee03c2f7550bafc0d29075e36deac F src/complete.c dc1d136c0feee03c2f7550bafc0d29075e36deac
F src/ctime.c 77779efbe78dd678d84bfb4fc2e87b6b6ad8dccd F src/ctime.c 77779efbe78dd678d84bfb4fc2e87b6b6ad8dccd
F src/date.c 593c744b2623971e45affd0bde347631bdfa4625 F src/date.c 593c744b2623971e45affd0bde347631bdfa4625
F src/delete.c 85592961a0bef547562468c9496a56f3997b3c30 F src/delete.c a3f2007baa239c6e1fc3246cf366febd24c1a12e
F src/expr.c 96f00a262308f3f97d2afd8519c7a284e25829f3 F src/expr.c e3e09af908b968305d4efeda8dc3499a087ee7d2
F src/fault.c 160a0c015b6c2629d3899ed2daf63d75754a32bb F src/fault.c 160a0c015b6c2629d3899ed2daf63d75754a32bb
F src/fkey.c 2ab0f5384b70594468ef3ac5c7ed8ca24bfd17d5 F src/fkey.c 2ab0f5384b70594468ef3ac5c7ed8ca24bfd17d5
F src/func.c f4499b39d66b71825514334ce67b32ff14bd19f5 F src/func.c f4499b39d66b71825514334ce67b32ff14bd19f5
@@ -1147,7 +1147,7 @@ F tool/opcodeDoc.awk b3a2a3d5d3075b8bd90b7afe24283efdd586659c
F tool/pagesig.c ff0ca355fd3c2398e933da5e22439bbff89b803b F tool/pagesig.c ff0ca355fd3c2398e933da5e22439bbff89b803b
F tool/restore_jrnl.tcl 6957a34f8f1f0f8285e07536225ec3b292a9024a F tool/restore_jrnl.tcl 6957a34f8f1f0f8285e07536225ec3b292a9024a
F tool/rollback-test.c 9fc98427d1e23e84429d7e6d07d9094fbdec65a5 F tool/rollback-test.c 9fc98427d1e23e84429d7e6d07d9094fbdec65a5
F tool/showdb.c 525ecc443578647703051308ad50a93de6ba2c4b F tool/showdb.c 1f3fe634d6f690b8d39ab1b9fd34583d468921e1
F tool/showjournal.c b62cecaab86a4053d944c276bb5232e4d17ece02 F tool/showjournal.c b62cecaab86a4053d944c276bb5232e4d17ece02
F tool/showwal.c 3f7f7da5ec0cba51b1449a75f700493377da57b5 F tool/showwal.c 3f7f7da5ec0cba51b1449a75f700493377da57b5
F tool/soak1.tcl 8d407956e1a45b485a8e072470a3e629a27037fe F tool/soak1.tcl 8d407956e1a45b485a8e072470a3e629a27037fe
@@ -1167,7 +1167,7 @@ F tool/vdbe-compress.tcl 0cf56e9263a152b84da86e75a5c0cdcdb7a47891
F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
F tool/warnings.sh d1a6de74685f360ab718efda6265994b99bbea01 F tool/warnings.sh d1a6de74685f360ab718efda6265994b99bbea01
F tool/win/sqlite.vsix 030f3eeaf2cb811a3692ab9c14d021a75ce41fff F tool/win/sqlite.vsix 030f3eeaf2cb811a3692ab9c14d021a75ce41fff
P 9b43e559195680e558264c4c00d34dc9cf9d9146 5e3b9ecc7b2b2e50952de819b99bafdb7b9ff59e P 7b5f3773867ed0e4ed17bd473ba972d500035318 5bb29b82109224a2ad02920658fabd8fb0f27b3f
R 51002a148d222844524dcb7bb9208985 R 432574c0dd840817debf508c99b1ccfe
U drh U dan
Z 1a524338f4286caad02c997553ac895a Z 2459ddf115f614b7a3ba484263d1245a

View File

@@ -1 +1 @@
7b5f3773867ed0e4ed17bd473ba972d500035318 6b6dcd4cc75317628072abac7c58b41361cc72b4

View File

@@ -644,7 +644,8 @@ void sqlite3GenerateRowDelete(
sqlite3VdbeAddOp2(v, OP_Copy, iPk, iOld); sqlite3VdbeAddOp2(v, OP_Copy, iPk, iOld);
for(iCol=0; iCol<pTab->nCol; iCol++){ for(iCol=0; iCol<pTab->nCol; iCol++){
testcase( mask!=0xffffffff && iCol==31 ); testcase( mask!=0xffffffff && iCol==31 );
if( mask==0xffffffff || (mask & MASKBIT32(iCol))!=0 ){ testcase( mask!=0xffffffff && iCol==32 );
if( mask==0xffffffff || (iCol<=31 && (mask & MASKBIT32(iCol))!=0) ){
sqlite3ExprCodeGetColumnOfTable(v, pTab, iDataCur, iCol, iOld+iCol+1); sqlite3ExprCodeGetColumnOfTable(v, pTab, iDataCur, iCol, iOld+iCol+1);
} }
} }

View File

@@ -1064,6 +1064,7 @@ Select *sqlite3SelectDup(sqlite3 *db, Select *p, int flags){
pNew->addrOpenEphm[0] = -1; pNew->addrOpenEphm[0] = -1;
pNew->addrOpenEphm[1] = -1; pNew->addrOpenEphm[1] = -1;
pNew->addrOpenEphm[2] = -1; pNew->addrOpenEphm[2] = -1;
pNew->nSelectRow = p->nSelectRow;
pNew->pWith = withDup(db, p->pWith); pNew->pWith = withDup(db, p->pWith);
return pNew; return pNew;
} }

View File

@@ -119,7 +119,7 @@ static unsigned char *print_byte_range(
/* /*
** Print an entire page of content as hex ** Print an entire page of content as hex
*/ */
static print_page(int iPg){ static void print_page(int iPg){
int iStart; int iStart;
unsigned char *aData; unsigned char *aData;
iStart = (iPg-1)*pagesize; iStart = (iPg-1)*pagesize;
@@ -131,7 +131,7 @@ static print_page(int iPg){
/* Print a line of decode output showing a 4-byte integer. /* Print a line of decode output showing a 4-byte integer.
*/ */
static print_decode_line( static void print_decode_line(
unsigned char *aData, /* Content being decoded */ unsigned char *aData, /* Content being decoded */
int ofst, int nByte, /* Start and size of decode */ int ofst, int nByte, /* Start and size of decode */
const char *zMsg /* Message to append */ const char *zMsg /* Message to append */
@@ -428,7 +428,7 @@ static void decode_trunk_page(
int detail, /* Show leaf pages if true */ int detail, /* Show leaf pages if true */
int recursive /* Follow the trunk change if true */ int recursive /* Follow the trunk change if true */
){ ){
int n, i, k; int n, i;
unsigned char *a; unsigned char *a;
while( pgno>0 ){ while( pgno>0 ){
a = getContent((pgno-1)*pagesize, pagesize); a = getContent((pgno-1)*pagesize, pagesize);
@@ -495,7 +495,6 @@ static void page_usage_cell(
int cellno /* Index of the cell on the page */ int cellno /* Index of the cell on the page */
){ ){
int i; int i;
int nDesc = 0;
int n = 0; int n = 0;
i64 nPayload; i64 nPayload;
i64 rowid; i64 rowid;
@@ -677,7 +676,7 @@ static void page_usage_report(const char *zDbName){
if( rc==SQLITE_OK ){ if( rc==SQLITE_OK ){
while( sqlite3_step(pStmt)==SQLITE_ROW ){ while( sqlite3_step(pStmt)==SQLITE_ROW ){
int pgno = sqlite3_column_int(pStmt, 2); int pgno = sqlite3_column_int(pStmt, 2);
page_usage_btree(pgno, 0, 0, sqlite3_column_text(pStmt, 1)); page_usage_btree(pgno, 0, 0, (const char*)sqlite3_column_text(pStmt,1));
} }
}else{ }else{
printf("ERROR: cannot query database: %s\n", sqlite3_errmsg(db)); printf("ERROR: cannot query database: %s\n", sqlite3_errmsg(db));
@@ -835,7 +834,6 @@ int main(int argc, char **argv){
free(a); free(a);
continue; continue;
}else if( zLeft && zLeft[0]=='t' ){ }else if( zLeft && zLeft[0]=='t' ){
unsigned char *a;
int detail = 0; int detail = 0;
int recursive = 0; int recursive = 0;
int i; int i;
@@ -861,4 +859,5 @@ int main(int argc, char **argv){
} }
} }
close(db); close(db);
return 0;
} }