aboutsummaryrefslogtreecommitdiff
path: root/src/pragma.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-07-28 19:34:53 +0000
committerdrh <drh@noemail.net>2008-07-28 19:34:53 +0000
commit633e6d57d92e943fbd3a52ea6627e1a1d0c338b7 (patch)
tree2a7a73f29836bc687d239754a4ff914cd4d46d27 /src/pragma.c
parent78bd9ca86f2d3537c2384896efe9882944222656 (diff)
downloadsqlite-633e6d57d92e943fbd3a52ea6627e1a1d0c338b7.tar.gz
sqlite-633e6d57d92e943fbd3a52ea6627e1a1d0c338b7.zip
Implement the "lookaside" memory allocation cache. Use of this cache makes
the speed1.test script run about 15% faster. Added new interfaces to control the cache. (CVS 5488) FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9
Diffstat (limited to 'src/pragma.c')
-rw-r--r--src/pragma.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/pragma.c b/src/pragma.c
index bac601c0c..6ffc60d58 100644
--- a/src/pragma.c
+++ b/src/pragma.c
@@ -11,7 +11,7 @@
*************************************************************************
** This file contains code used to implement the PRAGMA command.
**
-** $Id: pragma.c,v 1.182 2008/07/08 07:35:52 danielk1977 Exp $
+** $Id: pragma.c,v 1.183 2008/07/28 19:34:53 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -682,8 +682,7 @@ void sqlite3Pragma(
}
sqlite3_free(sqlite3_temp_directory);
if( zRight[0] ){
- sqlite3_temp_directory = zRight;
- zRight = 0;
+ sqlite3_temp_directory = sqlite3DbStrDup(0, zRight);
}else{
sqlite3_temp_directory = 0;
}
@@ -1323,8 +1322,8 @@ void sqlite3Pragma(
#endif
}
pragma_out:
- sqlite3_free(zLeft);
- sqlite3_free(zRight);
+ sqlite3DbFree(db, zLeft);
+ sqlite3DbFree(db, zRight);
}
#endif /* SQLITE_OMIT_PRAGMA || SQLITE_OMIT_PARSER */