1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fix a bug in the test3.c module that was causing failures in btree5.test. (CVS 1962)

FossilOrigin-Name: cd200cf8332be2c99a0a312b5f7dcd582a93fd18
This commit is contained in:
drh
2004-09-17 19:39:23 +00:00
parent a42707b234
commit f7a8362920
3 changed files with 9 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
C The\sINSERT\scode\sgenerator\sdoes\sa\sbetter\sjob\sof\sdetecting\sif\sthe\stable\nbeing\swritten\sinto\sis\sused\sin\sthe\sSELECT\son\sthe\sright-hand\sside.\nticket\s#901.\s(CVS\s1961) C Fix\sa\sbug\sin\sthe\stest3.c\smodule\sthat\swas\scausing\sfailures\sin\sbtree5.test.\s(CVS\s1962)
D 2004-09-17T17:23:15 D 2004-09-17T19:39:24
F Makefile.in 9cdfc3af2647055085969968ca2394f24c3c6166 F Makefile.in 9cdfc3af2647055085969968ca2394f24c3c6166
F Makefile.linux-gcc a9e5a0d309fa7c38e7c14d3ecf7690879d3a5457 F Makefile.linux-gcc a9e5a0d309fa7c38e7c14d3ecf7690879d3a5457
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -65,7 +65,7 @@ F src/table.c 8168c6e824009f8485bff79fc60ea8fea6829b10
F src/tclsqlite.c 0302e3f42f015d132d1291f3388c06e86c24a008 F src/tclsqlite.c 0302e3f42f015d132d1291f3388c06e86c24a008
F src/test1.c 1305825c29575ee55a1c8b98a191669fd78b6287 F src/test1.c 1305825c29575ee55a1c8b98a191669fd78b6287
F src/test2.c 0f3e0ad7b675a6f3323211ab4ea95490855654c3 F src/test2.c 0f3e0ad7b675a6f3323211ab4ea95490855654c3
F src/test3.c 1df9ea27467e50666e574ebe22d434288beb3050 F src/test3.c 5b5b0f3d11b097399c1054fff73d8f3711092301
F src/test4.c 7c6b9fc33dd1f3f93c7f1ee6e5e6d016afa6c1df F src/test4.c 7c6b9fc33dd1f3f93c7f1ee6e5e6d016afa6c1df
F src/test5.c b001fa7f1b9e2dc5c2331de62fc641b5ab2bd7a1 F src/test5.c b001fa7f1b9e2dc5c2331de62fc641b5ab2bd7a1
F src/tokenize.c 418ef7ba1149603a30dcf0057e04a3ea0e99edbe F src/tokenize.c 418ef7ba1149603a30dcf0057e04a3ea0e99edbe
@@ -247,7 +247,7 @@ F www/tclsqlite.tcl 560ecd6a916b320e59f2917317398f3d59b7cc25
F www/vdbe.tcl 59288db1ac5c0616296b26dce071c36cb611dfe9 F www/vdbe.tcl 59288db1ac5c0616296b26dce071c36cb611dfe9
F www/version3.tcl 092a01f5ef430d2c4acc0ae558d74c4bb89638a0 F www/version3.tcl 092a01f5ef430d2c4acc0ae558d74c4bb89638a0
F www/whentouse.tcl a8335bce47cc2fddb07f19052cb0cb4d9129a8e4 F www/whentouse.tcl a8335bce47cc2fddb07f19052cb0cb4d9129a8e4
P 0cc2f40e6afa157ead45140c4e28a9a33c469b73 P 709bb22d6ddbd713029059180aaf77ac483b5bb8
R 4638fdb57c25dfafa54254201f37cbfd R dc044bae1d961706b839b683870afbd2
U drh U drh
Z 58d52698abacf48a5d5a56e83ebdab52 Z d2ace6ff4a13f602608f2ad24423bdd0

View File

@@ -1 +1 @@
709bb22d6ddbd713029059180aaf77ac483b5bb8 cd200cf8332be2c99a0a312b5f7dcd582a93fd18

View File

@@ -13,7 +13,7 @@
** is not included in the SQLite library. It is used for automated ** is not included in the SQLite library. It is used for automated
** testing of the SQLite library. ** testing of the SQLite library.
** **
** $Id: test3.c,v 1.51 2004/09/08 20:13:06 drh Exp $ ** $Id: test3.c,v 1.52 2004/09/17 19:39:24 drh Exp $
*/ */
#include "sqliteInt.h" #include "sqliteInt.h"
#include "pager.h" #include "pager.h"
@@ -997,7 +997,7 @@ static int btree_key(
sqlite3BtreeKeySize(pCur, &n); sqlite3BtreeKeySize(pCur, &n);
if( sqlite3BtreeFlags(pCur) & BTREE_INTKEY ){ if( sqlite3BtreeFlags(pCur) & BTREE_INTKEY ){
char zBuf2[60]; char zBuf2[60];
sqlite3_snprintf(sizeof(zBuf),zBuf2, "%llu", n); sqlite3_snprintf(sizeof(zBuf2),zBuf2, "%llu", n);
Tcl_AppendResult(interp, zBuf2, 0); Tcl_AppendResult(interp, zBuf2, 0);
}else{ }else{
zBuf = malloc( n+1 ); zBuf = malloc( n+1 );