]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/amf_controller.rb
fixing version problem for way_tags
[rails.git] / app / controllers / amf_controller.rb
index 7f938af49e44ef51aea3dbe55215d39bb524d9ed..9564a1bdf79ff974d2e7b073ea411d699b34309c 100644 (file)
@@ -389,7 +389,7 @@ EOF
       if v[0,6]=='(type ' then next end
       if insertsql !='' then insertsql +=',' end
       if currentsql!='' then currentsql+=',' end
       if v[0,6]=='(type ' then next end
       if insertsql !='' then insertsql +=',' end
       if currentsql!='' then currentsql+=',' end
-      insertsql +="(#{way},'"+sqlescape(k)+"','"+sqlescape(v)+"',version)"
+      insertsql +="(#{way},'"+sqlescape(k)+"','"+sqlescape(v)+"',#{version})"
       currentsql+="(#{way},'"+sqlescape(k)+"','"+sqlescape(v)+"')"
     end
 
       currentsql+="(#{way},'"+sqlescape(k)+"','"+sqlescape(v)+"')"
     end