From ede76d8dc583a3abe7bd414670fb77328bca22ad Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Mon, 3 Dec 2007 17:15:07 +0000 Subject: [PATCH] DROP TEMPORARY TABLE so Tom can turn the privs down --- app/controllers/amf_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5