提交 ac33aa6d authored 作者: Noel Grandin's avatar Noel Grandin

668: Fail of an update command on large table with ENUM column

上级 9c734857
......@@ -21,6 +21,8 @@ Change Log
<h2>Next Version (unreleased)</h2>
<ul>
<li>Issue #668: Fail of an update command on large table with ENUM column
</li>
<li>Issue #662: column called CONSTRAINT is not properly escaped when storing to metadata
</li>
<li>Issue #660: Outdated java version mentioned on http://h2database.com/html/build.html#providing_patches
......
......@@ -438,6 +438,7 @@ public class Data {
writeByte((byte) type);
writeShortInt(v.getShort());
break;
case Value.ENUM:
case Value.INT: {
int x = v.getInt();
if (x < 0) {
......@@ -728,6 +729,7 @@ public class Data {
return ValueBoolean.get(false);
case INT_NEG:
return ValueInt.get(-readVarInt());
case Value.ENUM:
case Value.INT:
return ValueInt.get(readVarInt());
case LONG_NEG:
......@@ -933,6 +935,7 @@ public class Data {
return 2;
case Value.SHORT:
return 3;
case Value.ENUM:
case Value.INT: {
int x = v.getInt();
if (x < 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论