1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Progress toward using the iScanRatio information on indices. Many tests

are still failing.

FossilOrigin-Name: 6c352edbba85a15ca356b5e131f4b3b2723d1774
This commit is contained in:
drh
2013-10-04 02:36:19 +00:00
parent c28c4e5009
commit d9e3cad2f8
7 changed files with 52 additions and 57 deletions

View File

@@ -1282,8 +1282,13 @@ static void decodeIntArray(
pIndex->bUnordered = 1;
}else if( i>2 && memcmp(z, "r=", 2)==0
&& sqlite3GetInt32(z+2, &v32) ){
if( v32>255 ) v32 = 255;
if( v32<0 ) v32 = 0;
if( v32>=200 ){
v32 = 255;
}else if( v32<0 ){
v32 = 0;
}else{
v32 = (128*v32)/100;
}
pIndex->iScanRatio = (u8)v32;
}
z += i;