Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Data/DataRow.cpp (1 of 2 files). Show all
Unified · Split
| @@ -123,6 +123,9 @@ void DataRow::SetNullValue(int32_t columnIndex) · 122 unmodified lines | |||
| 123 | if (column == nullptr) | 123 | if (column == nullptr) |
| 124 | throw DataSetException("Column index " + ToString(columnIndex) + " is out of range for table \"" + m_parent->Name() + "\""); | 124 | throw DataSetException("Column index " + ToString(columnIndex) + " is out of range for table \"" + m_parent->Name() + "\""); |
| 125 | 125 | ||
| 126 | if (column->Computed()) | ||
| 127 | throw DataSetException("Cannot assign NULL value to DataColumn \"" + column->Name() + " for table \"" + m_parent->Name() + "\", column is computed with an expression"); | ||
| 128 | |||
| 126 | switch (column->Type()) | 129 | switch (column->Type()) |
| 127 | { | 130 | { |
| 128 | case DataType::String: | 131 | case DataType::String: |