fix DB crash when zcontents data for field is too large
This commit is contained in:
parent
62c254eca4
commit
e47df68f83
@ -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
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user