Il 08/05/2023 13:34, Roberto Brazzelli ha scritto:
Ciao Andrea,
è corretto si, con AND funzione si, mi chiedevo se c'era un modo per non ripetere map_get(hstore_to_map("other_tags").....ma in ogni coso è risolta.
Ciao Roberto,
nel caso della tua espressione, puoi solo evitare di ripetere la funzione hstore_to_map("other_tags") usando la funzione with_variable, ma non l'intera funzione map_get(hstore_to_map("other_tags"),'xxxxx') in quanto evidentemente in essa cambia il secondo parametro:
with_variable('other_tags', hstore_to_map("other_tags"), map_get(@other_tags,'leisure')='pitch' AND map_get(@other_tags,'sport')='tennis')
A presto.
Andrea