[Mono-list] help with MySqlParameter
Rob.Tillie@Student.tUL.EDU
Rob.Tillie@Student.tUL.EDU
Mon, 15 Nov 2004 20:45:10 +0100
Yes,
The @ char used to work, but got broken in a recent build.
(It used to work for me in the old bytefx drivers)
Greetz,
-- Rob.
> -----Original Message-----
> From: Peter [mailto:petervyvey@village.uunet.be]
> Sent: Monday, November 15, 2004 6:53 PM
> To: mono-list
> Subject: Re: [Mono-list] help with MySqlParameter
>
> Sergio,
>
> Try using '?user' for you parametername.
>
> You could try the following:
>
> string connstr = "... valid connection string here ...";
> MySqlParameter name = new MySqlParameter("?user",MySqlDbType.VarChar);
> name.Value="admin";
> DataRow usr = MySqlHelper.ExecuteDataRow(connstr, "SELECT * FROM usr WHERE
> username=?user", name);
>
> Peter
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list