mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
Return SQLITE_BUSY if the database is locked reading the schema within
sqlite_prepare(). Ticket #1106. (CVS 2322) FossilOrigin-Name: c33c02d6069b90f295698a9f35f4aa99dee5f5e9
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
** COMMIT
|
||||
** ROLLBACK
|
||||
**
|
||||
** $Id: build.c,v 1.308 2005/02/01 03:46:44 danielk1977 Exp $
|
||||
** $Id: build.c,v 1.309 2005/02/09 07:05:46 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <ctype.h>
|
||||
@@ -53,7 +53,9 @@ void sqlite3FinishCoding(Parse *pParse){
|
||||
if( sqlite3_malloc_failed ) return;
|
||||
if( pParse->nested ) return;
|
||||
if( !pParse->pVdbe ){
|
||||
pParse->rc = pParse->nErr ? SQLITE_ERROR : SQLITE_DONE;
|
||||
if( pParse->rc==SQLITE_OK && pParse->nErr ){
|
||||
pParse->rc = SQLITE_ERROR;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user