1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-16 23:02:26 +03:00

More tests for SQLITE_OMIT_UNIQUE_ENFORCEMENT and minor change to implementation.

FossilOrigin-Name: b86999436ec2414c990ba720441fe316f647eef6
This commit is contained in:
shaneh
2011-03-12 04:58:55 +00:00
parent ca6b9d5bbe
commit 11c58f7d8e
6 changed files with 72 additions and 88 deletions

View File

@@ -1331,7 +1331,6 @@ void sqlite3GenerateConstraintChecks(
sqlite3ExprCacheAffinityChange(pParse, regIdx, pIdx->nColumn+1);
#ifdef SQLITE_OMIT_UNIQUE_ENFORCEMENT
pIdx->onError = OE_None;
sqlite3ReleaseTempRange(pParse, regIdx, pIdx->nColumn+1);
continue; /* Treat pIdx as if it is not a UNIQUE index */
#else