Added test for array_to_vector

This commit is contained in:
Andrew Kane
2023-05-12 17:14:29 -07:00
parent dcf206128a
commit 8f589f6d09
2 changed files with 3 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ SELECT '{-Infinity}'::real[]::vector;
SELECT '{}'::real[]::vector;
SELECT '[1,2,3]'::vector::real[];
SELECT array_agg(n)::vector FROM generate_series(1, 16001) n;
SELECT array_to_vector(array_agg(n), 16001, false) FROM generate_series(1, 16001) n;
-- ensure no error
SELECT ARRAY[1,2,3] = ARRAY[1,2,3];