1
0
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:
danielk1977
2007-09-03 15:03:20 +00:00
parent d1a793126a
commit cd2543b6ae
5 changed files with 40 additions and 14 deletions

View File

@@ -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;