Skip to content

Commit 824635b

Browse files
committed
[vroom][src] Allow 0 to be added in matrix index
1 parent 893e3a3 commit 824635b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/get_check_data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ MatrixIndex
658658
get_MatrixIndex(HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, MatrixIndex opt_value) {
659659
if (column_found(info.colNumber)) {
660660
int64_t value = spi_getBigInt(tuple, tupdesc, info);
661-
if (value <= 0) elog(ERROR, "Unexpected Negative value or Zero in column %s", info.name);
661+
if (value < 0) elog(ERROR, "Unexpected Negative value in column %s", info.name);
662662
return (MatrixIndex) value;
663663
}
664664
return opt_value;

0 commit comments

Comments
 (0)