]> git.openstreetmap.org Git - rails.git/commitdiff
DROP TEMPORARY TABLE so Tom can turn the privs down
authorRichard Fairhurst <richard@systemed.net>
Mon, 3 Dec 2007 17:15:07 +0000 (17:15 +0000)
committerRichard Fairhurst <richard@systemed.net>
Mon, 3 Dec 2007 17:15:07 +0000 (17:15 +0000)
app/controllers/amf_controller.rb

index e39a4ceb2f8ab05c56402ffd94e1a32bdef44975..fe5fe08ff05b5b11ec7c2c69b300ee53a4896e89 100644 (file)
@@ -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