<div class="gmail_quote">On Tue, Aug 3, 2010 at 3:57 PM, Richard Weait <span dir="ltr"><<a href="mailto:richard@weait.com">richard@weait.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Tue, Aug 3, 2010 at 4:05 PM, Kevin Atkinson <<a href="mailto:kevin@atkinson.dhs.org">kevin@atkinson.dhs.org</a>> wrote:<br>
> I'm almost done with this script.  It's not a full bot, but instead modifies<br>
> an osm file which I will read back into JOSM and upload the changed parts<br>
> (or if that doesn't work use one of the upload scripts). Changes in what It<br>
> will do noted below.<br>
[ ... ]<br>
> I'm not going to do this.  Instead I am going to simply remove variants on<br>
> "name" (for example all other names in the "900 East" example).  And than<br>
> leave all other name_* and *_name alone (i.e. name_1, alt_name, etc). When<br>
> the alternate name is a numbered street, it will get the ".prefix" and<br>
> ".full" tags.  For example:<br>
>  name: Lorna Circle<br>
>  name_1: 3805 South<br>
>  name_1.prefix: W<br>
>  name_1.full: West 3805 South<br>
<br>
Whoa.  Are you considering adding a period "." to the key?  Might that<br>
mess up postgres?  From<br>
<br>
<a href="http://www.postgresql.org/docs/8.2/static/sql-syntax-lexical.html" target="_blank">http://www.postgresql.org/docs/8.2/static/sql-syntax-lexical.html</a><br>
<br>
"The period (.) is used in numeric constants, and to separate schema,<br>
table, and column names. "<br>
<br>
Perhaps bounce some of these ideas around on dev?<br><br></blockquote><div><br></div><div>I imagine the Ruby code is doing the proper escaping for text like this, but you're right: definitely worth a message to the dev list.</div>
<div><br></div><div>Not that it matters too much to the majority of the OSM community, but a period in the key name is invalid for most NoSQL-based systems (MongoDB in particular).</div></div>