diff options
author | drh <drh@noemail.net> | 2019-10-23 03:53:10 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-10-23 03:53:10 +0000 |
commit | ab0992f022b4e9ee5f0ac79a2fb6b3556e8a9cb2 (patch) | |
tree | 21858f413c19e00c68f68cb0bb434ed263cb05df /src | |
parent | a1a01ffb5e06c70610e34d9401ce8ca6eb6e0a7e (diff) | |
download | sqlite-ab0992f022b4e9ee5f0ac79a2fb6b3556e8a9cb2.tar.gz sqlite-ab0992f022b4e9ee5f0ac79a2fb6b3556e8a9cb2.zip |
Fix incorrect arguments to testcase() macros.
FossilOrigin-Name: 812467fbf04ce00228a8381a5eee471e4e35cc63184a4538129fcd70b7cec979
Diffstat (limited to 'src')
-rw-r--r-- | src/build.c | 4 | ||||
-rw-r--r-- | src/insert.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/build.c b/src/build.c index 5cd9473fa..51398f16f 100644 --- a/src/build.c +++ b/src/build.c @@ -1407,8 +1407,8 @@ void sqlite3AddDefaultValue( pCol->zName); #ifndef SQLITE_OMIT_GENERATED_COLUMNS }else if( pCol->colFlags & COLFLAG_GENERATED ){ - testcase( pCol->colflags & COLFLAG_VIRTUAL ); - testcase( pCol->colflags & COLFLAG_STORED ); + testcase( pCol->colFlags & COLFLAG_VIRTUAL ); + testcase( pCol->colFlags & COLFLAG_STORED ); sqlite3ErrorMsg(pParse, "cannot use DEFAULT on a generated column"); #endif }else{ diff --git a/src/insert.c b/src/insert.c index be5f49c9e..5b2505b2c 100644 --- a/src/insert.c +++ b/src/insert.c @@ -222,8 +222,8 @@ void sqlite3ComputeGeneratedColumns( */ for(i=0; i<pTab->nCol; i++){ if( pTab->aCol[i].colFlags & COLFLAG_GENERATED ){ - testcase( pTab->aCol[i].colflags & COLFLAG_VIRTUAL ); - testcase( pTab->aCol[i].colflags & COLFLAG_STORED ); + testcase( pTab->aCol[i].colFlags & COLFLAG_VIRTUAL ); + testcase( pTab->aCol[i].colFlags & COLFLAG_STORED ); pTab->aCol[i].colFlags |= COLFLAG_NOTAVAIL; } } @@ -2440,8 +2440,8 @@ static int xferOptimization( /* Generator expressions for generated columns must match */ if( (pDestCol->colFlags & COLFLAG_GENERATED)!=0 ){ if( sqlite3ExprCompare(0, pSrcCol->pDflt, pDestCol->pDflt, -1)!=0 ){ - testcase( pDestCol->colflags & COLFLAG_VIRTUAL ); - testcase( pDestCol->colflags & COLFLAG_STORED ); + testcase( pDestCol->colFlags & COLFLAG_VIRTUAL ); + testcase( pDestCol->colFlags & COLFLAG_STORED ); return 0; /* Different generator expressions */ } } |