Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Data/DataRow.cpp (1 of 17 files). Show all
Unified · Split
| @@ -328,13 +328,7 @@ Object DataRow::GetComputedValue(const DataColumnPtr& column, DataType targetTyp · 327 unmodified lines | ||
| 328 | 328 | case DataType::String: |
| 329 | 329 | return value; |
| 330 | 330 | case DataType::Boolean: |
| 331 | − if (IsEqual(value, "true") || IsEqual(value, "1", false)) | |
| 332 | − return true; | |
| 333 | − | |
| 334 | − if (IsEqual(value, "false") || IsEqual(value, "0", false)) | |
| 335 | − return false; | |
| 336 | − | |
| 337 | − throw DataSetException("Cannot convert \"String\" expression value \"" + value + "\" to \"Boolean\" column"); | |
| 331 | + return ParseBoolean(value); | |
| 338 | 332 | case DataType::DateTime: |
| 339 | 333 | return ParseTimestamp(value.c_str()); |
| 340 | 334 | case DataType::Single: |