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

Linked tables now support default values.

上级 d6e0402e
...@@ -51,7 +51,7 @@ public class RowList { ...@@ -51,7 +51,7 @@ public class RowList {
} }
private void writeRow(DataPage buff, Row r) throws SQLException { private void writeRow(DataPage buff, Row r) throws SQLException {
buff.checkCapacity(1 + DataPage.LENGTH_INT * 7); buff.checkCapacity(1 + DataPage.LENGTH_INT * 8);
buff.writeByte((byte) 1); buff.writeByte((byte) 1);
buff.writeInt(r.getMemorySize()); buff.writeInt(r.getMemorySize());
buff.writeInt(r.getColumnCount()); buff.writeInt(r.getColumnCount());
...@@ -62,6 +62,7 @@ public class RowList { ...@@ -62,6 +62,7 @@ public class RowList {
buff.writeInt(r.getStorageId()); buff.writeInt(r.getStorageId());
for (int i = 0; i < r.getColumnCount(); i++) { for (int i = 0; i < r.getColumnCount(); i++) {
Value v = r.getValue(i); Value v = r.getValue(i);
buff.checkCapacity(1);
if (v == null) { if (v == null) {
buff.writeByte((byte) 0); buff.writeByte((byte) 0);
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论