Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/06/10 17:09:22 (13 years ago)
Author:
cneumuel
Message:

#1260

  • changed ExecutionTime column datatype in DB to string (because time only allows 24-hours, but TimeSpan can be more)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.LINQDataAccess/3.3/JobDao.cs

    r5000 r5037  
    250250      target.JobId = source.Id;
    251251
    252       target.ExecutionTime = source.ExecutionTime;
     252      target.ExecutionTime = source.ExecutionTime.ToString();
    253253      target.Exception = source.Exception;
    254254
     
    283283
    284284      target.Exception = source.Exception;
    285       target.ExecutionTime = source.ExecutionTime.HasValue ? source.ExecutionTime.Value : TimeSpan.Zero;
     285      TimeSpan ts;
     286      if (!TimeSpan.TryParse(source.ExecutionTime, out ts)) ts = TimeSpan.Zero;
     287      target.ExecutionTime = ts;
    286288
    287289      target.Priority = source.Priority;
Note: See TracChangeset for help on using the changeset viewer.