1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Don't do anything when input doclists are both empty. Ticket #2774 (CVS 4546)

FossilOrigin-Name: 75cb46f82a6a95dbe9e279dede299bafa2e91cae
This commit is contained in:
shess
2007-11-16 00:23:07 +00:00
parent a185ddbfba
commit cd7274ceb0
6 changed files with 29 additions and 17 deletions

View File

@ -1351,7 +1351,7 @@ static void docListUnion(
DLWriter writer;
if( nLeft==0 ){
dataBufferAppend(pOut, pRight, nRight);
if( nRight!=0) dataBufferAppend(pOut, pRight, nRight);
return;
}
if( nRight==0 ){
@ -1532,7 +1532,7 @@ static void docListOrMerge(
DLWriter writer;
if( nLeft==0 ){
dataBufferAppend(pOut, pRight, nRight);
if( nRight!=0 ) dataBufferAppend(pOut, pRight, nRight);
return;
}
if( nRight==0 ){

View File

@ -1335,7 +1335,7 @@ static void docListUnion(
DLWriter writer;
if( nLeft==0 ){
dataBufferAppend(pOut, pRight, nRight);
if( nRight!=0) dataBufferAppend(pOut, pRight, nRight);
return;
}
if( nRight==0 ){
@ -1633,7 +1633,7 @@ static void docListOrMerge(
DLWriter writer;
if( nLeft==0 ){
dataBufferAppend(pOut, pRight, nRight);
if( nRight!=0 ) dataBufferAppend(pOut, pRight, nRight);
return;
}
if( nRight==0 ){