History

TimeSeriesPlatformLibrary: Added exception to DataRow::SetNullValue for computed columns.

J. Ritchie Carroll committed 7 years ago

Commit 15687311 parent 78615612 files · +9 −6Browse files

Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Data/DataRow.cpp (1 of 2 files). Show all

Unified · Split

Source/Libraries/TimeSeriesPlatformLibrary/Data/DataRow.cpp+3−0
@@ -123,6 +123,9 @@ void DataRow::SetNullValue(int32_t columnIndex) · 122 unmodified lines
123123 if (column == nullptr)
124124 throw DataSetException("Column index " + ToString(columnIndex) + " is out of range for table \"" + m_parent->Name() + "\"");
125125
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+
126129 switch (column->Type())
127130 {
128131 case DataType::String:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t