mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix a problem in hash.c when replacing entries in tables configured with copyKey==0. (CVS 4375)
FossilOrigin-Name: a19d3a73a91f2040ec35d913f11743ff4913ffb7
This commit is contained in:
10
src/test8.c
10
src/test8.c
@@ -13,7 +13,7 @@
|
||||
** is not included in the SQLite library. It is used for automated
|
||||
** testing of the SQLite library.
|
||||
**
|
||||
** $Id: test8.c,v 1.56 2007/09/03 11:51:50 danielk1977 Exp $
|
||||
** $Id: test8.c,v 1.57 2007/09/03 15:03:21 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "tcl.h"
|
||||
@@ -452,6 +452,14 @@ static int echoCreate(
|
||||
zSql = sqlite3MPrintf(0, "CREATE TABLE %Q(logmsg)", pVtab->zLogName);
|
||||
rc = sqlite3_exec(db, zSql, 0, 0, 0);
|
||||
sqlite3_free(zSql);
|
||||
if( rc!=SQLITE_OK ){
|
||||
*pzErr = sqlite3StrDup(sqlite3_errmsg(db));
|
||||
}
|
||||
}
|
||||
|
||||
if( *ppVtab && rc!=SQLITE_OK ){
|
||||
echoDestructor(*ppVtab);
|
||||
*ppVtab = 0;
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
Reference in New Issue
Block a user