mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-02 10:40:57 +08:00
Improved input functions [skip ci]
This commit is contained in:
@@ -108,9 +108,10 @@ LINE 1: SELECT '['::vector;
|
||||
^
|
||||
DETAIL: Unexpected end of input.
|
||||
SELECT '[ '::vector;
|
||||
ERROR: invalid input syntax for type vector: "[ "
|
||||
ERROR: malformed vector literal: "[ "
|
||||
LINE 1: SELECT '[ '::vector;
|
||||
^
|
||||
DETAIL: Unexpected end of input.
|
||||
SELECT '[,'::vector;
|
||||
ERROR: malformed vector literal: "[,"
|
||||
LINE 1: SELECT '[,'::vector;
|
||||
@@ -120,9 +121,8 @@ SELECT '[]'::vector;
|
||||
ERROR: vector must have at least 1 dimension
|
||||
LINE 1: SELECT '[]'::vector;
|
||||
^
|
||||
-- TODO fix error message
|
||||
SELECT '[ ]'::vector;
|
||||
ERROR: invalid input syntax for type vector: "[ ]"
|
||||
ERROR: vector must have at least 1 dimension
|
||||
LINE 1: SELECT '[ ]'::vector;
|
||||
^
|
||||
-- TODO fix error message
|
||||
|
||||
Reference in New Issue
Block a user