[Mono-devel-list] Command with Parameters support for SQLite

Chris Turchin chris at turchin.net
Wed Jun 9 13:32:09 EDT 2004


Hi,

I actually did some work getting named parameters working some time ago.
If someone would like to commit, here is the diff. I had posted it to
the mono-list then for feedback, but should have posted to
mono-devel-list instead. Sorry about that...

Regards,
--chris


On Wed, 2004-06-09 at 14:33, Vincent Daron wrote:
> Sorry, forget the SqLiteCommand patch, String.Replace is really too
> poor... must be tired yersterday. I 'll use regex instead and send a
> better patch. 
> 
> Tks
> 
> Vincent
> 
> Le mer, 09/06/2004 à 00:33 -0400, Vincent Daron a écrit :
> > Hi all
> > 
> > Here is 2 small quick patch for Mono.Data.SqLite Provider.
> > 
> > "SqLiteCommand.cs.patch" add a basic support for parameters in
> > SqlCommand. This is a simple string.Replace, so use a "@" character to
> > start your ParameterNames to avoid conflics with the Query.
> > 
> > The SqliteDataReader patch simply not throw an exception anymore for
> > GetGuid(int index), but Parse the string value.
> > 
> > See you.
> > 
> > Vincent
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mono.Data.SqliteClient.diff
Type: text/x-patch
Size: 20065 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040609/89cb6779/attachment.bin 


More information about the Mono-devel-list mailing list