mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
Omit the '\0' at the end of UTF-8 strings on disk (it is implied). Also
don't store the number of rows at the beginning of each table record. (CVS 1390) FossilOrigin-Name: 202a470f2c1804a96e69f16709d1a92e405971f0
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
** ROLLBACK
|
||||
** PRAGMA
|
||||
**
|
||||
** $Id: build.c,v 1.185 2004/05/16 11:57:28 danielk1977 Exp $
|
||||
** $Id: build.c,v 1.186 2004/05/18 01:23:38 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <ctype.h>
|
||||
@@ -407,6 +407,7 @@ char *sqlite3TableNameFromToken(Token *pName){
|
||||
void sqlite3OpenMasterTable(Vdbe *v, int isTemp){
|
||||
sqlite3VdbeAddOp(v, OP_Integer, isTemp, 0);
|
||||
sqlite3VdbeAddOp(v, OP_OpenWrite, 0, MASTER_ROOT);
|
||||
sqlite3VdbeAddOp(v, OP_SetNumColumns, 0, 5); /* sqlite_master has 5 columns */
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1724,6 +1725,7 @@ void sqlite3CreateIndex(
|
||||
if( pTable ){
|
||||
sqlite3VdbeAddOp(v, OP_Integer, pTab->iDb, 0);
|
||||
sqlite3VdbeOp3(v, OP_OpenRead, 2, pTab->tnum, pTab->zName, 0);
|
||||
sqlite3VdbeAddOp(v, OP_SetNumColumns, 2, pTab->nCol);
|
||||
lbl2 = sqlite3VdbeMakeLabel(v);
|
||||
sqlite3VdbeAddOp(v, OP_Rewind, 2, lbl2);
|
||||
lbl1 = sqlite3VdbeAddOp(v, OP_Recno, 2, 0);
|
||||
|
||||
Reference in New Issue
Block a user