]> git.openstreetmap.org Git - rails.git/commitdiff
fixing version problem for way_tags
authorRichard Fairhurst <richard@systemed.net>
Tue, 26 Jun 2007 12:42:28 +0000 (12:42 +0000)
committerRichard Fairhurst <richard@systemed.net>
Tue, 26 Jun 2007 12:42:28 +0000 (12:42 +0000)
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
-      insertsql +="(#{way},'"+sqlescape(k)+"','"+sqlescape(v)+"',version)"
+      insertsql +="(#{way},'"+sqlescape(k)+"','"+sqlescape(v)+"',#{version})"
       currentsql+="(#{way},'"+sqlescape(k)+"','"+sqlescape(v)+"')"
     end