/ 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 Unified Diffs Ignore Whitespace Patch

Changes to tool/showdb.c.

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







|







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