mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Add testcase() macros beside each sqlite3_log() call to make sure it is
tested with both logging enable and disabled. FossilOrigin-Name: 1168763d2cd96acfa0488198e8bc82f0c4fa35a3
This commit is contained in:
@@ -849,8 +849,10 @@ case OP_Halt: {
|
||||
if( pOp->p4.z ){
|
||||
assert( p->rc!=SQLITE_OK );
|
||||
sqlite3SetString(&p->zErrMsg, db, "%s", pOp->p4.z);
|
||||
testcase( sqlite3GlobalConfig.xLog!=0 );
|
||||
sqlite3_log(pOp->p1, "abort at %d in [%s]: %s", pc, p->zSql, pOp->p4.z);
|
||||
}else if( p->rc ){
|
||||
testcase( sqlite3GlobalConfig.xLog!=0 );
|
||||
sqlite3_log(pOp->p1, "constraint failed at %d in [%s]", pc, p->zSql);
|
||||
}
|
||||
rc = sqlite3VdbeHalt(p);
|
||||
|
Reference in New Issue
Block a user