Forums

 
  Support Forum  Modules  Engage: Publish  Bug Fix: AddItemTag code.
Previous Previous
 
Next Next
New Post 7/15/2008 11:38 AM
  Adaptive InfoSystems, Inc.
11 posts
10th Level Poster


Bug Fix: AddItemTag code. 

I think I may have a bug in the data provider code.  You may have already noticed and fixed it, but here it is.

public override void AddItemTag(int itemVersionId, int tagId)
{
StringBuilder sql = new StringBuilder(128);
sql.Append("insert into ");
sql.Append(NamePrefix);
sql.Append("itemversiontags {ItemVersionId, TagId} Values{");
sql.Append(itemVersionId);
sql.Append(", ");
sql.Append(tagId);
sql.Append("}");
SqlHelper.ExecuteNonQuery(ConnectionString, CommandType.Text, sql.ToString());

}

This method is throwing an SQL syntax error because of the {'s.  The method below this uses transactions and it works fine, I assume it's because of the parentheses instead of brackets.

Please let me know if this will be included in an upcoming release, I'm going to go ahead and change the code for now.

Thanks, Jacob


Jacob Gable
Adaptive InfoSystems, Inc.
www.adaptiveinfosystems.com
 
New Post 7/16/2008 9:54 AM
  Chris Hammond
1115 posts
1st Level Poster


Re: Bug Fix: AddItemTag code. 

Jacob, as always, excellent feedback, I've made this change in our source for the upcoming release.


Directory of Training Programs, DotNetNuke Corporation
 
Previous Previous
 
Next Next
  Support Forum  Modules  Engage: Publish  Bug Fix: AddItemTag code.

Purchase

Please click here to buy now.
Payment will be processed via credit card or PayPal.

Please click here to buy now.
Payment will be processed via credit card or PayPal.

Test Drive!

Want to find out how it works? Visit our demo site to see the modules in actions!

Want to find out how it works? Visit our demo site to see the modules in actions!

Subscribe

Sign up for our newsletter and get the latest product updates!

Sign up for our newsletter and get the latest product updates!

Online Support

Powered by DotNetNuke