Another bug in DataAcess layer

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/10/2006 3:21:49 PM
kwa
Gravatar
Total Posts 23

Another bug in DataAcess layer

public

{

 

 

 

{

arParams =

 

arParams[0].Value = PageID;

}

 

static bool PageSettings_DeletePage(int PageID)SqlConnection Connection = GetConnection();SqlParameter[] arParams = new SqlParameter[1];if (ConfigurationManager.AppSettings["CacheMSSQLParameters"].ToLower() == "true")SqlHelperParameterCache.GetSpParameterSet(GetConnectionString(),"mp_Pages_Delete");else

{

arParams[0] =

It should be:

    arParams[0] = new SqlParameter("@PageID", SqlDbType.Int);

there is errors when I set CacheMSSQLParameters="false"

also there is a problem deleting page too.

new SqlParameter("@SiteID", SqlDbType.Int);
8/10/2006 3:34:05 PM
Gravatar
Total Posts 18439

Re: Another bug in DataAcess layer

Thanks, I've fixed it in my version so it will be in the next release. Its really a minor bug becuase users of MS SQL should cache sql parameters for best performance anyway.

Its one of those copy/paste bugs

btw, if you copy code into the FCKeditor like you did in this post, or html or anything formatted you should use the "Paste As Text" toolbar in the editor, its the clipboard image with a T in thee FCKeditor toolbar. There is also a paste from Word feature.
You must sign in to post in the forums. This thread is closed to new posts.