mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-05 20:20:59 +08:00
Removed unneeded check [skip ci]
This commit is contained in:
@@ -247,11 +247,6 @@ halfvec_in(PG_FUNCTION_ARGS)
|
||||
errmsg("invalid input syntax for type halfvec: \"%s\"", lit),
|
||||
errdetail("Junk after closing right brace.")));
|
||||
|
||||
if (dim < 1)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_DATA_EXCEPTION),
|
||||
errmsg("halfvec must have at least 1 dimension")));
|
||||
|
||||
CheckDim(dim);
|
||||
CheckExpectedDim(typmod, dim);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user