Missing comma in dbModule.cs

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/30/2008 3:29:03 PM
Gravatar
Total Posts 13
Partner

Missing comma in dbModule.cs

Hi Joe,
while I was trying to duplicate a module in another page I found an error. (I'm using SQLite as DB)
If  I'm not wrong, there are 2 missing comma in mojoPortal.Data.SQLite\dbModule.cs, at line 723 and 737, here below after PublishBeginDate:

StringBuilder sqlCommand = new StringBuilder();
sqlCommand.Append("INSERT INTO mp_PageModules (");
sqlCommand.Append("ModuleID, ");
sqlCommand.Append("PageID, ");
sqlCommand.Append("PaneName, ");
sqlCommand.Append("ModuleOrder, ");
sqlCommand.Append("PublishBeginDate ");
if (publishEndDate > DateTime.MinValue)
{
sqlCommand.Append(", PublishEndDate, ");
}
sqlCommand.Append("PageGuid, ");
sqlCommand.Append("ModuleGuid ");
sqlCommand.Append(") ");

sqlCommand.Append(" VALUES (");
sqlCommand.Append(":ModuleID, ");
sqlCommand.Append(":PageID, ");
sqlCommand.Append(":PaneName, ");
sqlCommand.Append(":ModuleOrder, ");
sqlCommand.Append(":PublishBeginDate ");
if (publishEndDate > DateTime.MinValue)
{

 

8/31/2008 5:36:01 AM
Gravatar
Total Posts 18439

Re: Missing comma in dbModule.cs

Hi Walter,

Thanks for pointing that out.

It looks like the missing commas are inside the if statement so they will only be missing if the if condition is false.

I will fix this right now and have it in svn trunk by tonight.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.