diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ctime.c | 3 | ||||
-rw-r--r-- | src/insert.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ctime.c b/src/ctime.c index a128f61a6..a04c567b4 100644 --- a/src/ctime.c +++ b/src/ctime.c @@ -302,6 +302,9 @@ static const char * const azCompileOpt[] = { #ifdef SQLITE_OMIT_TRUNCATE_OPTIMIZATION "OMIT_TRUNCATE_OPTIMIZATION", #endif +#ifdef SQLITE_OMIT_UNIQUE_ENFORCEMENT + "OMIT_UNIQUE_ENFORCEMENT", +#endif #ifdef SQLITE_OMIT_UTF16 "OMIT_UTF16", #endif diff --git a/src/insert.c b/src/insert.c index 5a86484b2..a4efcf2bf 100644 --- a/src/insert.c +++ b/src/insert.c @@ -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 |