SubSonic Forums
All Your Database Are Belong To Us

Possible bug in SqlDataProvider

Latest post 06-05-2008 4:38 PM by maltadonna. 2 replies.
  • 06-05-2008 8:06 AM

    Possible bug in SqlDataProvider

    In AddParams-method the sqlparameter size is always set to the default size of 50. This causes clipping on all nvarachar over 50.

    Index: SqlDataProvider.cs
    ===================================================================
    --- SqlDataProvider.cs    (revision 446)
    +++ SqlDataProvider.cs    (working copy)
    @@ -232,7 +232,6 @@
                         if(sqlParam.Direction == ParameterDirection.Output || sqlParam.Direction == ParameterDirection.InputOutput)
                             sqlParam.Size = param.Size;
     
    -                    sqlParam.Size = param.Size;
                         if(param.Scale != null)
                             sqlParam.Scale = Convert.ToByte(param.Scale);

     

     

     

     

  • 06-05-2008 9:41 AM In reply to

    Re: Possible bug in SqlDataProvider

    Reply |Contact |Answer

    You're absoluletly right... This was a stupid last minute mistake on my part... Thanks for reporting this. I'm in the process of updating the installer and source code distribution files and will do a blog post on this shortly.

    Found a bug? Help us fix it by submitting a Work Item!

  • 06-05-2008 4:38 PM In reply to

    • maltadonna
    • Not Ranked
    • Joined on 08-24-2007
    • South Hero, VT
    • Posts 1

    Re: Possible bug in SqlDataProvider

    Damn, you beat me to it. I thought I had introduced a bug switching over from Active Record to Repository Record in my app. Traced  it to the same source.

     

    Eric - thank you for all the hard work you guys do. There isn't enough praise to give you, Rob and the subsonic commiters. Great work and outstanding product(s)!!!!!

    Matthew F. Altadonna Senior Developer WaterViewIT, LLC 125 Pearl Street, 3rd Floor Boston, MA 02110
    Filed under:
Page 1 of 1 (3 items) | RSS