[Mono-bugs] [Bug 62613][Wis] Changed - [Patch] Mono.Data.SqliteClient named input parameters

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 20 Mar 2005 19:25:06 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by notzcoolx@yahoo.es.

http://bugzilla.ximian.com/show_bug.cgi?id=62613

--- shadow/62613	2004-08-06 03:54:47.000000000 -0400
+++ shadow/62613.tmp.8452	2005-03-20 19:25:06.000000000 -0500
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: unspecified
 OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: Sys.Data
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: chris@turchin.net               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -69,6 +69,23 @@
 --chris
 
 ------- Additional Comments From chris@turchin.net  2004-08-06 03:54 -------
 Created an attachment (id=8924)
 patch to add named parameters to sqliteclient
 
+
+------- Additional Comments From notzcoolx@yahoo.es  2005-03-20 19:25 -------
+This patch solves a important bug in the way SqliteParameterCollection
+hashes the parameters.
+
+The important part is in the Add(object) method of
+SqliteParameterCollection.cs. The actual implementation uses
+"named_param_hash[value]" where value is a SqliteParameter but every
+Contains method or this method use strings when they search for
+parameters.
+
+This leds a situation where when someone adds a parameter into a
+command he/she will never be able to has access to it.
+
+I know that the actual implementation of SqliteParameter's is not
+usable but adding a parameter and not being able of pop it back I
+think it's a bug.