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

Change the record format to include an extra varint at the beginning to record the number of bytes in the header. (CVS 1478)

FossilOrigin-Name: 0c4d138807f367d75b3fb5b2dadf206df725659f
This commit is contained in:
drh
2004-05-27 19:59:32 +00:00
parent 5f3b4ab53c
commit d3194f5a4a
6 changed files with 166 additions and 191 deletions

View File

@@ -80,14 +80,14 @@ struct Cursor {
i64 iKey; /* Key for the NEW or OLD pseudo-table row */
u8 *pIncrKey; /* Pointer to pKeyInfo->incrKey */
KeyInfo *pKeyInfo; /* Info about index keys needed by index cursors */
int nField; /* Number of fields in the header */
/* Cached information about the header for the data record that the
** cursor is currently pointing to */
Bool cacheValid; /* True if the cache is valid */
int nField; /* Number of fields in the header */
int nHeader; /* Number of bytes in the entire header */
int payloadSize; /* Total number of bytes in the record */
u64 *aType; /* Type values for all entries in the record */
u32 *aType; /* Type values for all entries in the record */
u32 *aOffset; /* Cached offsets to the start of each columns data */
};
typedef struct Cursor Cursor;
@@ -367,4 +367,3 @@ int sqlite3VdbeMemRealify(Mem*);
#ifndef NDEBUG
void sqlite3VdbeMemSanity(Mem*, u8);
#endif