Fixed consecutive delimiters with text representation

This commit is contained in:
Andrew Kane
2023-06-11 12:10:52 -07:00
parent a577c2df80
commit 0a98a953cd
4 changed files with 15 additions and 0 deletions

View File

@@ -65,6 +65,10 @@ SELECT '[1,]'::vector;
ERROR: invalid input syntax for type vector: "[1,]"
LINE 1: SELECT '[1,]'::vector;
^
SELECT '[1,,3]'::vector;
ERROR: malformed vector literal: "[1,,3]"
LINE 1: SELECT '[1,,3]'::vector;
^
SELECT '[1,2,3]'::vector(2);
ERROR: expected 2 dimensions, not 3
SELECT unnest('{"[1,2,3]", "[4,5,6]"}'::vector[]);