yonik at apache
Oct 19, 2007, 12:21 PM
On 10/19/07, Erik Hatcher <erik [at] ehatchersolutions> wrote:
Re: Solr-ruby crashing "(eval):1: Illegal octal digit"
[In reply to]
> Any objections to changing Solr's Ruby response writer to prefixing
> integers with "0d"?
I think it would look nicer to simply strip leading zeros... they
aren't valid in JSON, and Python treats it as an octal constant (will
be illegal in python 3, like ruby, I think).
Since "integer" is meant to be a legacy type that may have existing
zero padded numbers, I guess this should be done in the response
writer (in the base text writer or JSON writer).