1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-02 05:54:29 +03:00

Fix a problem with the byte-code decompiler that was inserted by the

enhancements at [4248980a356f659b]

FossilOrigin-Name: af63e95dcdd6e9741cdddc3698e857e3b8be40048d3036f939f3583e517c4eff
This commit is contained in:
drh
2020-02-04 00:55:27 +00:00
parent 51f37b2bb8
commit 40d1db8d20
3 changed files with 8 additions and 9 deletions

View File

@@ -1489,8 +1489,7 @@ static int displayComment(
}
}else if( strncmp(zSynopsis+ii+1, "@NP", 3)==0 ){
sqlite3_context *pCtx = pOp->p4.pCtx;
assert( pOp->p4type==P4_FUNCCTX );
if( pCtx->argc==1 ){
if( pOp->p4type!=P4_FUNCCTX || pCtx->argc==1 ){
sqlite3_str_appendf(&x, "%d", v1);
}else if( pCtx->argc>1 ){
sqlite3_str_appendf(&x, "%d..%d", v1, v1+pCtx->argc-1);