Skip to content

Commit 53948ec

Browse files
committed
[PGPRO-11393] Fixed the content of the error message
If the "RUM" index was created without the "WITH" operator, when "SELECT...ORDER BY" an error message of the form would appear: "ERROR: cannot order without attribute ... in WHERE clause" Fixed the content of error message, "WHERE" replaced by "ORDER BY". Tags: rum
1 parent 6a065fd commit 53948ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rumscan.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ rumFillScanKey(RumScanOpaque so, OffsetNumber attnum,
214214
}
215215

216216
if (scanKey == NULL)
217-
elog(ERROR, "cannot order without attribute %d in WHERE clause",
217+
elog(ERROR, "cannot order without attribute %d in ORDER BY clause",
218218
key->attnum);
219219
else if (scanKey->nentries > 1)
220220
elog(ERROR, "scan key should contain only one value");

0 commit comments

Comments
 (0)