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