Improved input functions [skip ci]

This commit is contained in:
Andrew Kane
2024-04-13 11:09:59 -07:00
parent 9957ba6817
commit 23944302fe
6 changed files with 14 additions and 8 deletions

View File

@@ -96,9 +96,10 @@ LINE 1: SELECT '['::halfvec;
^
DETAIL: Unexpected end of input.
SELECT '[ '::halfvec;
ERROR: invalid input syntax for type halfvec: "[ "
ERROR: malformed halfvec literal: "[ "
LINE 1: SELECT '[ '::halfvec;
^
DETAIL: Unexpected end of input.
SELECT '[,'::halfvec;
ERROR: malformed halfvec literal: "[,"
LINE 1: SELECT '[,'::halfvec;
@@ -108,9 +109,8 @@ SELECT '[]'::halfvec;
ERROR: halfvec must have at least 1 dimension
LINE 1: SELECT '[]'::halfvec;
^
-- TODO fix error message
SELECT '[ ]'::halfvec;
ERROR: invalid input syntax for type halfvec: "[ ]"
ERROR: halfvec must have at least 1 dimension
LINE 1: SELECT '[ ]'::halfvec;
^
-- TODO fix error message