mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Make sure the schema loader callback can handle EMPTY_RESULT_CALLBACKS being
on. Ticket #406. (CVS 1065) FossilOrigin-Name: 8c163fc0c7c721b7a5fa6727b0e90bff4484c782
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
** other files are for internal use by SQLite and should not be
|
||||
** accessed by users of the library.
|
||||
**
|
||||
** $Id: main.c,v 1.139 2003/07/22 09:24:45 danielk1977 Exp $
|
||||
** $Id: main.c,v 1.140 2003/07/27 17:26:23 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "os.h"
|
||||
@ -58,6 +58,7 @@ int sqliteInitCallback(void *pInit, int argc, char **argv, char **azColName){
|
||||
int nErr = 0;
|
||||
|
||||
assert( argc==5 );
|
||||
if( argv==0 ) return 0; /* Might happen if EMPTY_RESULT_CALLBACKS are on */
|
||||
if( argv[0]==0 ){
|
||||
corruptSchema(pData);
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user