提交 58d82af2 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix javadoc, loop in containsNull(), and data conversion error message

上级 18130ce9
...@@ -220,12 +220,12 @@ public class LocalResultImpl implements LocalResult { ...@@ -220,12 +220,12 @@ public class LocalResultImpl implements LocalResult {
if (r == null) { if (r == null) {
r = false; r = false;
reset(); reset();
while (next()) { loop: while (next()) {
Value[] row = currentRow; Value[] row = currentRow;
for (int i = 0; i < visibleColumnCount; i++) { for (int i = 0; i < visibleColumnCount; i++) {
if (row[i].containsNull()) { if (row[i].containsNull()) {
r = true; r = true;
break; break loop;
} }
} }
} }
......
...@@ -12,7 +12,7 @@ import org.h2.message.DbException; ...@@ -12,7 +12,7 @@ import org.h2.message.DbException;
import org.h2.util.MathUtils; import org.h2.util.MathUtils;
/** /**
* Base class for collection values. * Base class for ARRAY and ROW values.
*/ */
abstract class ValueCollectionBase extends Value { abstract class ValueCollectionBase extends Value {
...@@ -64,7 +64,7 @@ abstract class ValueCollectionBase extends Value { ...@@ -64,7 +64,7 @@ abstract class ValueCollectionBase extends Value {
int leftType = l.getType(); int leftType = l.getType();
int rightType = v.getType(); int rightType = v.getType();
if (rightType != ARRAY && rightType != ROW) { if (rightType != ARRAY && rightType != ROW) {
throw getDataConversionError(leftType); throw v.getDataConversionError(leftType);
} }
ValueCollectionBase r = (ValueCollectionBase) v; ValueCollectionBase r = (ValueCollectionBase) v;
Value[] leftArray = l.values, rightArray = r.values; Value[] leftArray = l.values, rightArray = r.values;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论