aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-02-10 02:31:30 +0000
committerdrh <drh@noemail.net>2018-02-10 02:31:30 +0000
commitc86d82f27d3dc1450a73a7eae83c9cb69a9ca0c7 (patch)
treec8005b04ef0d2ddc6e86b7acc9aed4eee59823e3 /src
parentf313952097725eaf25f80b3431035d19bb1c5c72 (diff)
downloadsqlite-c86d82f27d3dc1450a73a7eae83c9cb69a9ca0c7.tar.gz
sqlite-c86d82f27d3dc1450a73a7eae83c9cb69a9ca0c7.zip
Fix misplaced testcase() macros from the previous check-in.
FossilOrigin-Name: 3aed949a18a251c5795f21f0385c205a127502b7e9cf06bc7f4c763951cd7984
Diffstat (limited to 'src')
-rw-r--r--src/func.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c
index 399f6dba3..deb7e7492 100644
--- a/src/func.c
+++ b/src/func.c
@@ -1239,13 +1239,13 @@ static void replaceFunc(
}else{
if( nRep>nPattern ){
nOut += nRep - nPattern;
+ testcase( nOut-1==db->aLimit[SQLITE_LIMIT_LENGTH] );
+ testcase( nOut-2==db->aLimit[SQLITE_LIMIT_LENGTH] );
if( nOut-1>db->aLimit[SQLITE_LIMIT_LENGTH] ){
sqlite3_result_error_toobig(context);
sqlite3_free(zOut);
return;
}
- testcase( nOut-1==db->aLimit[SQLITE_LIMIT_LENGTH] );
- testcase( nOut-2==db->aLimit[SQLITE_LIMIT_LENGTH] );
cntExpand++;
if( (cntExpand&(cntExpand-1))==0 ){
/* Grow the size of the output buffer only on substitutions