1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Avoid an unnecessary OP_Move operation for expression subqueries.

FossilOrigin-Name: 462f42af52f146fd328ddcbbe78c8444ef7bd2c3
This commit is contained in:
drh
2014-08-29 12:29:39 +00:00
parent ae914d783a
commit 53932ce8fa
4 changed files with 10 additions and 9 deletions

View File

@@ -829,7 +829,7 @@ static void selectInnerLoop(
if( pSort ){
pushOntoSorter(pParse, pSort, p, regResult);
}else{
sqlite3ExprCodeMove(pParse, regResult, iParm, 1);
assert( regResult==iParm );
/* The LIMIT clause will jump out of the loop for us */
}
break;