提交 5c921f3c authored 作者: Thomas Mueller's avatar Thomas Mueller

bug when using column defaults / computed columns with a different data type than the column

上级 1f738c80
...@@ -553,10 +553,11 @@ public abstract class Table extends SchemaObjectBase { ...@@ -553,10 +553,11 @@ public abstract class Table extends SchemaObjectBase {
Column column = columns[i]; Column column = columns[i];
Value v2; Value v2;
if (column.getComputed()) { if (column.getComputed()) {
// force updating the value
value = null;
v2 = column.computeValue(session, row); v2 = column.computeValue(session, row);
} else {
v2 = column.validateConvertUpdateSequence(session, value);
} }
v2 = column.validateConvertUpdateSequence(session, value);
if (v2 != value) { if (v2 != value) {
row.setValue(i, v2); row.setValue(i, v2);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论