mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-03 03:00:56 +08:00
Updated handling of range error to be consistent with real
This commit is contained in:
@@ -63,9 +63,21 @@ SELECT '[1.5e-38,-1.5e-38]'::vector;
|
||||
(1 row)
|
||||
|
||||
SELECT '[4e38,1]'::vector;
|
||||
ERROR: infinite value not allowed in vector
|
||||
ERROR: "4e38" is out of range for type vector
|
||||
LINE 1: SELECT '[4e38,1]'::vector;
|
||||
^
|
||||
SELECT '[-4e38,1]'::vector;
|
||||
ERROR: "-4e38" is out of range for type vector
|
||||
LINE 1: SELECT '[-4e38,1]'::vector;
|
||||
^
|
||||
SELECT '[1e-46,1]'::vector;
|
||||
ERROR: "1e-46" is out of range for type vector
|
||||
LINE 1: SELECT '[1e-46,1]'::vector;
|
||||
^
|
||||
SELECT '[-1e-46,1]'::vector;
|
||||
ERROR: "-1e-46" is out of range for type vector
|
||||
LINE 1: SELECT '[-1e-46,1]'::vector;
|
||||
^
|
||||
SELECT '[1,2,3'::vector;
|
||||
ERROR: malformed vector literal: "[1,2,3"
|
||||
LINE 1: SELECT '[1,2,3'::vector;
|
||||
|
||||
Reference in New Issue
Block a user