Find bad performance place
This commit is contained in:
parent
3ffa6ed4b3
commit
d122ba4496
1 changed files with 4 additions and 0 deletions
|
|
@ -1594,6 +1594,10 @@ function is_used() {
|
|||
$and=" and ";
|
||||
if (isset($query)){
|
||||
$query=FormatString($query);
|
||||
/**
|
||||
*@function
|
||||
*@todo FS#151 bad performance, to be changed with a prepare stmt
|
||||
*/
|
||||
$filter_query=$and."(vw_name ilike '%$query%' or quick_code ilike ('%$query%') or vw_description ilike '%$query%' or tva_num ilike '%$query%')";
|
||||
}
|
||||
$sql="select * from vw_fiche_attr where ".$filter_fd_id.$filter_query;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue