X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0ab2db397981e45b5d75f2c65fcc448c958e2f06..0c549650eb5ba62e64046f5981e7fda6d9689e0d:/app/controllers/amf_controller.rb diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index e39a4ceb2..fe5fe08ff 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -409,7 +409,7 @@ class AmfController < ApplicationController ActiveRecord::Base.connection.update(sql) deleteuniquenoderelations(db_uqn,uid,db_now) - ActiveRecord::Base.connection.execute("DROP TABLE #{db_uqn}") + ActiveRecord::Base.connection.execute("DROP TEMPORARY TABLE #{db_uqn}") # 6b. insert new version of route into way_nodes @@ -541,7 +541,7 @@ class AmfController < ApplicationController ActiveRecord::Base.connection.update(sql) deleteuniquenoderelations(db_uqn,uid,db_now) - ActiveRecord::Base.connection.execute("DROP TABLE #{db_uqn}") + ActiveRecord::Base.connection.execute("DROP TEMPORARY TABLE #{db_uqn}") # - delete way