Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ben_a 65 posts 123 karma points
    May 13, 2010 @ 22:39
    ben_a
    0

    Bug found with MySQL

    I had a problem where comments weren't saving. The postback to /createcomment/ was throwing an exception.

    The exception was:

    umbraco.DataLayer.SqlHelperException: Umbraco Exception (DataLayer): SQL helper exception in ExecuteNonQuery ---> MySql.Data.MySqlClient.MySqlException: Out of range value for column 'MAINID' at row 1

    I noticed in the Base.cs class that "-1" was being written to the field "mainid" for every insert based on this line:

    SqlHelper.CreateParameter("@mainid", -1),

    I changed "-1" to "0" and the error went away and comments would save. I'm not sure if this will negatively impact something until I test some more, but I wanted to let you know about this issue.

    Regards,

    Ben

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies