diff options
author | drh <drh@noemail.net> | 2019-06-12 22:46:04 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-06-12 22:46:04 +0000 |
commit | 0ce974d122875c6e9ac3017660cc7a3746d276af (patch) | |
tree | 92ba3565c3da74254eb0e320ac27b3ed83d65eb3 /src | |
parent | 13d04020775b10b252029455d2b8dcfcf49a47e4 (diff) | |
download | sqlite-0ce974d122875c6e9ac3017660cc7a3746d276af.tar.gz sqlite-0ce974d122875c6e9ac3017660cc7a3746d276af.zip |
Adjust requirements marks and add new requirements tests.
FossilOrigin-Name: ebb81dad1f43dac4636cd44d4055d1d4b198c675f73e23c5a2d8d992ae27fe1f
Diffstat (limited to 'src')
-rw-r--r-- | src/insert.c | 2 | ||||
-rw-r--r-- | src/pcache.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/insert.c b/src/insert.c index 094b98351..2fe015fa0 100644 --- a/src/insert.c +++ b/src/insert.c @@ -1425,7 +1425,7 @@ void sqlite3GenerateConstraintChecks( }else{ char *zName = pCheck->a[i].zName; if( zName==0 ) zName = pTab->zName; - if( onError==OE_Replace ) onError = OE_Abort; /* IMP: R-15569-63625 */ + if( onError==OE_Replace ) onError = OE_Abort; /* IMP: R-26383-51744 */ sqlite3HaltConstraint(pParse, SQLITE_CONSTRAINT_CHECK, onError, zName, P4_TRANSIENT, P5_ConstraintCheck); diff --git a/src/pcache.c b/src/pcache.c index 8311049c5..9125d5de3 100644 --- a/src/pcache.c +++ b/src/pcache.c @@ -243,9 +243,10 @@ static int numberOfCachePages(PCache *p){ ** suggested cache size is set to N. */ return p->szCache; }else{ - /* IMPLEMENTATION-OF: R-61436-13639 If the argument N is negative, then - ** the number of cache pages is adjusted to use approximately abs(N*1024) - ** bytes of memory. */ + /* IMPLEMANTATION-OF: R-59858-46238 If the argument N is negative, then the + ** number of cache pages is adjusted to be a number of pages that would + ** use approximately abs(N*1024) bytes of memory based on the current + ** page size. */ return (int)((-1024*(i64)p->szCache)/(p->szPage+p->szExtra)); } } |