File tree 1 file changed +6
-7
lines changed
oshdb-util/src/main/java/org/heigit/ohsome/oshdb/util/tagtranslator
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,19 @@ public class JdbcTagTranslator implements TagTranslator {
29
29
30
30
31
31
private static final String OSHDB_OSM_KEY = String .format ("SELECT txt, id"
32
- + " from %s "
32
+ + " from %s"
33
33
+ " where id = any(?)" , TableNames .E_KEY );
34
34
35
- private static final String OSHDB_OSM_TAG = String .format ("SELECT kv.txt, valueid"
36
- + " from %s k"
37
- + " left join %s kv on k.id = kv.keyid"
38
- + " where k.id = ? and kv.valueid = any (?)" , TableNames .E_KEY , TableNames .E_KEYVALUE );
35
+ private static final String OSHDB_OSM_TAG = String .format ("SELECT txt, valueid"
36
+ + " from %s"
37
+ + " where keyid = ? and valueid = any (?)" , TableNames .E_KEYVALUE );
39
38
40
39
private static final String OSM_OSHDB_ROLE = String .format ("SELECT id, txt"
41
- + " from %s "
40
+ + " from %s"
42
41
+ " where txt = any (?)" , TableNames .E_ROLE );
43
42
44
43
private static final String OSHDB_OSM_ROLE = String .format ("SELECT txt, id"
45
- + " from %s "
44
+ + " from %s"
46
45
+ " where id = any (?)" , TableNames .E_ROLE );
47
46
48
47
private final DataSource source ;
You can’t perform that action at this time.
0 commit comments