Do not report an sqlite3_error_offset() for errors that occur inside of

views or triggers, since the text of those elements is not part of the
original query.

FossilOrigin-Name: cb5ddebf79f824672045cbc660ffc896e82a769e1312ab5925d334ce1e7036dd
This commit is contained in:
drh
2024-11-20 11:37:24 +00:00
parent 46e4155e9f
commit cdea0ebac4
4 changed files with 42 additions and 9 deletions
+1
View File
@@ -938,6 +938,7 @@ void sqlite3RecordErrorOffsetOfExpr(sqlite3 *db, const Expr *pExpr){
pExpr = pExpr->pLeft;
}
if( pExpr==0 ) return;
if( ExprHasProperty(pExpr, EP_FromDDL) ) return;
db->errByteOffset = pExpr->w.iOfst;
}