diff options
author | drh <drh@noemail.net> | 2016-02-29 15:53:11 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-02-29 15:53:11 +0000 |
commit | 94eaafa9ce6e044b834c56c712d18ba3c1f6d91d (patch) | |
tree | d50a428eee181d33045692ecb3980f7659279f8f /src/main.c | |
parent | 743606c3d3843dcc25be65bcb3cce2e10f8d752c (diff) | |
download | sqlite-94eaafa9ce6e044b834c56c712d18ba3c1f6d91d.tar.gz sqlite-94eaafa9ce6e044b834c56c712d18ba3c1f6d91d.zip |
Reduce the amount of heap required to store many schemas by storing each
column datatype appended to the column name, rather than as a separate
allocation.
FossilOrigin-Name: 842b21162713bb141b845b01c136457a31af4ab0
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 2a258da66..3ba5972fa 100644 --- a/src/main.c +++ b/src/main.c @@ -3335,7 +3335,8 @@ int sqlite3_table_column_metadata( ** explicitly declared column. Copy meta information from *pCol. */ if( pCol ){ - zDataType = pCol->zType; + zDataType = sqlite3StrNext(pCol->zName); + if( zDataType[0]==0 ) zDataType = 0; zCollSeq = pCol->zColl; notnull = pCol->notNull!=0; primarykey = (pCol->colFlags & COLFLAG_PRIMKEY)!=0; |