/ Check-in [65a13faf]
Login

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

Overview
Comment:Fix a bug in the showdb utility: the serial types for BLOB and TEXT where reversed.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 65a13faf1e3cd18f3459cd410f65d334cfa7c376
User & Date: drh 2011-01-05 21:46:53
Context
2011-01-06
01:26
Enhance the showdb tool to show a btree page layout. Add limit checks so that overflow content does not overflow the buffer. check-in: 57ffa07e user: drh tags: trunk
2011-01-05
21:46
Fix a bug in the showdb utility: the serial types for BLOB and TEXT where reversed. check-in: 65a13faf user: drh tags: trunk
21:20
Enhancements to the "showdb" debugging tool. Add the ability to display the content of a cell. check-in: e9023a4e user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/showdb.c.

   223    223         pData += 8;
   224    224       }else if( x==8 ){
   225    225         sprintf(zDesc, "0");
   226    226       }else if( x==9 ){
   227    227         sprintf(zDesc, "1");
   228    228       }else if( x>=12 ){
   229    229         int size = (x-12)/2;
   230         -      if( x&1 ){
          230  +      if( (x&1)==0 ){
   231    231           sprintf(zDesc, "blob(%d)", size);
   232    232         }else{
   233    233           sprintf(zDesc, "text(%d)", size);
   234    234         }
   235    235         pData += size;
   236    236       }
   237    237       j = strlen(zDesc);