aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authordrh <>2022-05-13 16:38:40 +0000
committerdrh <>2022-05-13 16:38:40 +0000
commita6e8ee12e2bbb353ae4548e38083d1855f7b86aa (patch)
tree2deb2ba455110c582a814ae4065d3bdb17aa123b /src/printf.c
parentf8d2745f99fdde443cbc8c828c231f536c17884b (diff)
downloadsqlite-a6e8ee12e2bbb353ae4548e38083d1855f7b86aa.tar.gz
sqlite-a6e8ee12e2bbb353ae4548e38083d1855f7b86aa.zip
Redefine the acccess rules for the Expr.w union so that the Expr.w.iJoin
member is accessible on either EP_OuterON or EP_InnerON. FossilOrigin-Name: 6f741d6cfb8831a3ac966257ac4519bcc8156293447bf50323c2d9b170125974
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/printf.c b/src/printf.c
index 41ce4ac7a..f0bfa5327 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -954,7 +954,9 @@ void sqlite3RecordErrorByteOffset(sqlite3 *db, const char *z){
** as the error offset.
*/
void sqlite3RecordErrorOffsetOfExpr(sqlite3 *db, const Expr *pExpr){
- while( pExpr && (ExprHasProperty(pExpr,EP_OuterON) || pExpr->w.iOfst<=0) ){
+ while( pExpr
+ && (ExprHasProperty(pExpr,EP_OuterON|EP_InnerON) || pExpr->w.iOfst<=0)
+ ){
pExpr = pExpr->pLeft;
}
if( pExpr==0 ) return;