mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add sanity check of query
This commit is contained in:
@ -303,7 +303,8 @@ calc_rank_or(float *w, tsvector * t, QUERYTYPE * q)
|
|||||||
*/
|
*/
|
||||||
res = res + ( wjm + resj - wjm/((jm+1)*(jm+1)))/1.64493406685;
|
res = res + ( wjm + resj - wjm/((jm+1)*(jm+1)))/1.64493406685;
|
||||||
}
|
}
|
||||||
res = res /size;
|
if ( size > 0 )
|
||||||
|
res = res /size;
|
||||||
pfree(item);
|
pfree(item);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user