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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user