[Mono-devel-list] Npgsql breaks multi-line queries

Rafael Teixeira monoman at gmail.com
Thu Jul 28 15:24:56 EDT 2005


I've forwarded your patch to Francisco Jr. that created/maintains
npgsql, as the primary repository for it is at gborg under his
control, and is just synced inside Mono's.

Thanks for spotting that,

:)

On 7/28/05, Jaroslaw Kowalski <jaak at jkowalski.net> wrote:
> Hi!
> 
> I found that Npgsql client breaks multi-line queries by removing newline
> characters. This leads to improper sql being sent do postgresql.
> 
> The following CommandText
> 
> ====
> select a as b
> from C
> ====
> 
> is sent as "select a as bfrom C" which is obviously an error because the
> space between "b" and "from" is missing. This is because RegExp used to
> filter parameters doesn't use RegexOptions.Singleline option.
> 
> I'm attaching a patch against SVN trunk which fixes the problem.
> 
> Would anyone care to apply it?
> 
> --
> Jaroslaw Kowalski
> http://blog.jkowalski.net/
> http://nlog.sourceforge.net/
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 
> 
> 


-- 
Rafael "Monoman" Teixeira
---------------------------------------
I'm trying to become a "Rosh Gadol" before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!



More information about the Mono-devel-list mailing list