-C Add\san\sassert()\sto\sthe\simplementation\sof\scount(*)\sthat\schecks\sthe\ncorrect\soperation\sof\sthe\ssqlite3_aggregate_count()\sfunction.\s(CVS\s6473)
-D 2009-04-08T23:04:14
+C Simplify\sthe\simplementation\sof\sthe\scolumnName()\sfunction\sin\svdbeapi.c.\nThis\sis\sa\scode\scleanup\sonly\s-\sno\sbehavior\schanges.\s(CVS\s6474)
+D 2009-04-08T23:05:29
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in 583e87706abc3026960ed759aff6371faf84c211
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
F src/vdbe.c 3d252f70666a80fea2fb794b6fe154a282d11573
F src/vdbe.h d70a68bee196ab228914a3902c79dbd24342a0f2
F src/vdbeInt.h 53a2f4696871712646c77351904576cca6ad9752
-F src/vdbeapi.c b158449a125f5e5e513ad05033dae085d7795033
+F src/vdbeapi.c adf0e8f104a831936d966888c427b70565087aed
F src/vdbeaux.c 570aaa5e15ae141115194d22443c73c8beb5032b
F src/vdbeblob.c e67757450ae8581a8b354d9d7e467e41502dfe38
F src/vdbemem.c 9798905787baae83d0b53b62030e32ecf7a0586f
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P 3cc79162dbdbce9d08bb28942128780277101e0d
-R cad719d14d320e9183126e9bc8c80627
+P f322be3833c4a938ee7d9e4bcfd5decaca57db0b
+R e80187c69eb5fab0addc01c50974cf7a
U drh
-Z f5295c7f28f949611e9fc538864887c4
+Z 3cf051c8edaf2e9ebf6aff384812ac24
** This file contains code use to implement APIs that are part of the
** VDBE.
**
-** $Id: vdbeapi.c,v 1.157 2009/04/08 15:45:32 drh Exp $
+** $Id: vdbeapi.c,v 1.158 2009/04/08 23:05:29 drh Exp $
*/
#include "sqliteInt.h"
#include "vdbeInt.h"
const void *ret = 0;
Vdbe *p = (Vdbe *)pStmt;
int n;
+ sqlite3 *db = p->db;
if( p!=0 ){
+ assert( db!=0 );
n = sqlite3_column_count(pStmt);
if( N<n && N>=0 ){
N += useType*n;
- sqlite3_mutex_enter(p->db->mutex);
+ sqlite3_mutex_enter(db->mutex);
+ assert( db->mallocFailed==0 );
ret = xFunc(&p->aColName[N]);
/* A malloc may have failed inside of the xFunc() call. If this
** is the case, clear the mallocFailed flag and return NULL.
*/
- if( p->db && p->db->mallocFailed ){
- p->db->mallocFailed = 0;
+ if( db->mallocFailed ){
+ db->mallocFailed = 0;
ret = 0;
}
- sqlite3_mutex_leave(p->db->mutex);
+ sqlite3_mutex_leave(db->mutex);
}
}
return ret;