diff options
author | drh <drh@noemail.net> | 2003-05-31 16:21:12 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2003-05-31 16:21:12 +0000 |
commit | f26e09c87fd45fe3bb5aa4edacc9ea3f6325c884 (patch) | |
tree | 5f3a5c939757ced657ebcfbea9c0418fadb19677 /src/select.c | |
parent | 8372b8d13442ad85ab76f6b1bf89532f45fdce59 (diff) | |
download | sqlite-f26e09c87fd45fe3bb5aa4edacc9ea3f6325c884.tar.gz sqlite-f26e09c87fd45fe3bb5aa4edacc9ea3f6325c884.zip |
Tighter binding of views, triggers, and indices to their respective
databases. Ticket #323. Much more testing needs to be done to the
sqliteFix...() routines in attach.c. (CVS 990)
FossilOrigin-Name: 7202d4f1a8853368954a967b7ccca9d8a6645a2e
Diffstat (limited to 'src/select.c')
-rw-r--r-- | src/select.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c index a4b300508..1b6d45ef7 100644 --- a/src/select.c +++ b/src/select.c @@ -12,7 +12,7 @@ ** This file contains C code routines that are called by the parser ** to handle SELECT statements in SQLite. ** -** $Id: select.c,v 1.139 2003/05/17 17:35:12 drh Exp $ +** $Id: select.c,v 1.140 2003/05/31 16:21:13 drh Exp $ */ #include "sqliteInt.h" @@ -1657,6 +1657,7 @@ static int flattenSubquery( if( pSrc->a[iFrom].pTab && pSrc->a[iFrom].pTab->isTransient ){ sqliteDeleteTable(0, pSrc->a[iFrom].pTab); } + sqliteFree(pSrc->a[iFrom].zDatabase); sqliteFree(pSrc->a[iFrom].zName); sqliteFree(pSrc->a[iFrom].zAlias); if( nSubSrc>1 ){ |