fix DB crash when zcontents data for field is too large

This commit is contained in:
Kathy Ruffing 2013-09-10 12:44:59 +00:00
parent 62c254eca4
commit e47df68f83
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ namespace DataLoader
entry.DTS = Dts;
entry.UserID = Userid;
}
cont.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq;
cont.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq.TrimEnd(" ".ToCharArray());
Item itm = null;
// the stpseq for section records may include a space & some other data. This
// was not part of what is stored in the transition records, so just look at

View File

@ -85,7 +85,7 @@ namespace DataLoader
// 20000 flags step type item & 1 adjusts for 'base' in format files.
int contenttype = (structtype == "R") ? 20040 : 20001 + int.Parse(newstptyp != null ? newstptyp : StepType);
content = Content.New(null, stptext.Replace("<BackSlash>", "\\\\"), contenttype, null, ci.ToString(), dts, userid);
content.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq;
content.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq.TrimEnd(" ".ToCharArray()); ;
// Before we save it, handle RO & Transitions tokens.
int tokrt = Textm.IndexOf('\x15');