Commit 61f895a1 authored by Jonas Nylund's avatar Jonas Nylund

SEV Bug fix in send_objecthistdata

parent 74219f40
...@@ -2823,18 +2823,14 @@ int sev_dbms::get_objectvalues( pwr_tStatus *sts, sev_item *item, ...@@ -2823,18 +2823,14 @@ int sev_dbms::get_objectvalues( pwr_tStatus *sts, sev_item *item,
else { else {
colsStr.append("sev__time, "); colsStr.append("sev__time, ");
} }
char colName[64]; char colNameStr[80];
for(size_t i = 0; i < item->attr.size(); i++) { for(size_t i = 0; i < item->attr.size(); i++) {
sprintf(colName, "`col_%d`,", i); sprintf(colNameStr, "`%s`,", create_colName(i, item->attr[i].aname));
colsStr.append(colName); colsStr.append(colNameStr);
// colsStr.append("`");
// colsStr.append(item->attr[i].aname);
// colsStr.append("`,");
} }
//remove last , //remove last ,
colsStr.resize(colsStr.length()-1); colsStr.resize(colsStr.length()-1);
if ( item->options & pwr_mSevOptionsMask_UseDeadBand) if ( item->options & pwr_mSevOptionsMask_UseDeadBand)
strcpy( jumpstr, "or sev__jump = 1"); strcpy( jumpstr, "or sev__jump = 1");
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment