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,6 +303,7 @@ calc_rank_or(float *w, tsvector * t, QUERYTYPE * q)
|
||||
*/
|
||||
res = res + ( wjm + resj - wjm/((jm+1)*(jm+1)))/1.64493406685;
|
||||
}
|
||||
if ( size > 0 )
|
||||
res = res /size;
|
||||
pfree(item);
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user