Skip to content

Commit 5dba240

Browse files
authored
Merge pull request #2007 from joto/fix-cast-to-char
Fix: Make sure index is used for type/id indexes in flex output
2 parents 4c35c03 + 5339fe4 commit 5dba240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db-copy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void db_deleter_by_type_and_id_t::delete_rows(std::string const &table,
6464

6565
fmt::format_to(std::back_inserter(sql),
6666
") AS t (osm_type, osm_id) WHERE"
67-
" p.{} = t.osm_type AND p.{} = t.osm_id",
67+
" p.{} = t.osm_type::char(1) AND p.{} = t.osm_id",
6868
type, column.c_str() + pos + 1);
6969
} else {
7070
fmt::format_to(std::back_inserter(sql),

0 commit comments

Comments
 (0)