aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeaux.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-06-26 13:57:49 +0000
committerdrh <drh@noemail.net>2017-06-26 13:57:49 +0000
commit169dd928c521144e3be5b1fa81aefaa43eb2803f (patch)
tree3850004946f982cf534e9a94dd36a4e14de141df /src/vdbeaux.c
parenta22dd3860a3491d621fec0d0d507c7a0a60d9b6b (diff)
downloadsqlite-169dd928c521144e3be5b1fa81aefaa43eb2803f.tar.gz
sqlite-169dd928c521144e3be5b1fa81aefaa43eb2803f.zip
Add the SQLITE_DBCONFIG_ENABLE_QPSG option to activate the query planner
stability guarantee. This involves refactoring the sqlite3.flags bitvector to carve out a free bit to use. FossilOrigin-Name: 7076e8283ebae1b45a5d85d9538b49b6da399d38c3c6935de100f948f814f6a9
Diffstat (limited to 'src/vdbeaux.c')
-rw-r--r--src/vdbeaux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c
index 5dfbe4f5b..846bf7c8d 100644
--- a/src/vdbeaux.c
+++ b/src/vdbeaux.c
@@ -4540,7 +4540,7 @@ sqlite3 *sqlite3VdbeDb(Vdbe *v){
*/
sqlite3_value *sqlite3VdbeGetBoundValue(Vdbe *v, int iVar, u8 aff){
assert( iVar>0 );
- if( v ){
+ if( v && (v->db->flags & SQLITE_EnableQPSG)==0 ){
Mem *pMem = &v->aVar[iVar-1];
if( 0==(pMem->flags & MEM_Null) ){
sqlite3_value *pRet = sqlite3ValueNew(v->db);