@@ -294,7 +294,7 @@ void output_pgsql_t::relation_add(osmium::Relation const &rel)
294294 * contain the change for that also. */
295295void output_pgsql_t::node_delete (osmid_t osm_id)
296296{
297- if (m_expire.from_db (m_tables[t_point]. get ( ), osm_id) != 0 ) {
297+ if (m_expire.from_result (m_tables[t_point]-> get_wkb (osm_id ), osm_id) != 0 ) {
298298 m_tables[t_point]->delete_row (osm_id);
299299 }
300300}
@@ -312,10 +312,10 @@ void output_pgsql_t::pgsql_delete_way_from_output(osmid_t osm_id)
312312 }
313313
314314 m_tables[t_roads]->delete_row (osm_id);
315- if (m_expire.from_db (m_tables[t_line]. get ( ), osm_id) != 0 ) {
315+ if (m_expire.from_result (m_tables[t_line]-> get_wkb (osm_id ), osm_id) != 0 ) {
316316 m_tables[t_line]->delete_row (osm_id);
317317 }
318- if (m_expire.from_db (m_tables[t_poly]. get ( ), osm_id) != 0 ) {
318+ if (m_expire.from_result (m_tables[t_poly]-> get_wkb (osm_id ), osm_id) != 0 ) {
319319 m_tables[t_poly]->delete_row (osm_id);
320320 }
321321}
@@ -329,10 +329,12 @@ void output_pgsql_t::way_delete(osmid_t osm_id)
329329void output_pgsql_t::pgsql_delete_relation_from_output (osmid_t osm_id)
330330{
331331 m_tables[t_roads]->delete_row (-osm_id);
332- if (m_expire.from_db (m_tables[t_line].get (), -osm_id) != 0 ) {
332+ if (m_expire.from_result (m_tables[t_line]->get_wkb (-osm_id), -osm_id) !=
333+ 0 ) {
333334 m_tables[t_line]->delete_row (-osm_id);
334335 }
335- if (m_expire.from_db (m_tables[t_poly].get (), -osm_id) != 0 ) {
336+ if (m_expire.from_result (m_tables[t_poly]->get_wkb (-osm_id), -osm_id) !=
337+ 0 ) {
336338 m_tables[t_poly]->delete_row (-osm_id);
337339 }
338340}
0 commit comments