Commit e6d80098 authored by Peter Eisentraut's avatar Peter Eisentraut

Correct ancient logic mistake in assertion

Found by gcc -Wlogical-op
parent ba3de10c
......@@ -817,7 +817,7 @@ InsertOneValue(char *value, int i)
Oid typoutput;
char *prt;
AssertArg(i >= 0 || i < MAXATTR);
AssertArg(i >= 0 && i < MAXATTR);
elog(DEBUG4, "inserting column %d value \"%s\"", i, value);
......@@ -842,7 +842,7 @@ void
InsertOneNull(int i)
{
elog(DEBUG4, "inserting column %d NULL", i);
Assert(i >= 0 || i < MAXATTR);
Assert(i >= 0 && i < MAXATTR);
values[i] = PointerGetDatum(NULL);
Nulls[i] = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment