[Zope] How can you insert strings with newlines into SQL data base?

Michel Pelletier michel@digicool.com
Mon, 10 Jan 2000 11:33:47 -0500


Post the patch to the collector it will get done...

-Michel

> -----Original Message-----
> From: Anthony Baxter [mailto:anthony@interlink.com.au]
> Sent: Monday, January 10, 2000 7:47 AM
> Cc: itamars@ibm.net; zope@zope.org
> Subject: Re: [Zope] How can you insert strings with newlines into SQL
> database? 
> 
> 
> >>> Anthony Baxter wrote
> > Aaron Watters posted a patch for gadfly to fix this - you might
> > want to check either the Zope list archives or the gadfly list
> > archive (at egroups.com). It should probably be applied to the
> > version that's in the Zope CVS....
> 
> Ok, I found it:
> 
> > Anthony Baxter has mentioned a number of times that
> > gadfly barfs on strings with embedded newlines.  There is a
> > one line patch to this. In sqlgen.py replace
> > 
> >    charstre = "'[^\n']*'"
> > 
> > with
> > 
> >    charstre = "'[^']*'"
> > 
> > Sorry!  -- Aaron Watters
> 
> (this would be a nice patch to apply to the CVS tree :)
> Anthony
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>