" from poi p, category c "
" where p.lat between ? and ? "
" and p.lon between ? and ? "
- " and c.enabled=1 and p.cat_id = c.cat_id and p.label like ? order by p.label, c.label",
+ " and c.enabled=1 and p.cat_id = c.cat_id and (p.label like $NAME or p.postal_code like $NAME) order by p.label, c.label",
-1, &poisql.select_poi_search, NULL)!=SQLITE_OK)
return FALSE;
" from poi p, category c "
" where p.lat between ? and ? "
" and p.lon between ? and ? "
- " and c.enabled=1 and p.cat_id = c.cat_id and p.label like ? and c.cat_id = ? order by p.label",
+ " and c.enabled=1 and p.cat_id = c.cat_id and (p.label like $NAME or p.postal_code like $NAME) and c.cat_id = ? order by p.label",
-1, &poisql.select_poi_search_cat, NULL)!=SQLITE_OK)
return FALSE;