You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pl/plpython/expected/plpython_types.out
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -691,7 +691,8 @@ CREATE FUNCTION test_type_conversion_mdarray_malformed() RETURNS int[] AS $$
691
691
return [[1,2,3],[4,5]]
692
692
$$ LANGUAGE plpythonu;
693
693
SELECT * FROM test_type_conversion_mdarray_malformed();
694
-
ERROR: multidimensional arrays must have array expressions with matching dimensions. PL/Python function return value has sequence length 2 while expected 3
694
+
ERROR: wrong length of inner sequence: has length 2, but 3 was expected
695
+
DETAIL: To construct a multidimensional array, the inner sequences must all have the same length.
695
696
CONTEXT: while creating return value
696
697
PL/Python function "test_type_conversion_mdarray_malformed"
697
698
CREATE FUNCTION test_type_conversion_mdarray_toodeep() RETURNS int[] AS $$
Copy file name to clipboardExpand all lines: src/pl/plpython/expected/plpython_types_3.out
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -691,7 +691,8 @@ CREATE FUNCTION test_type_conversion_mdarray_malformed() RETURNS int[] AS $$
691
691
return [[1,2,3],[4,5]]
692
692
$$ LANGUAGE plpython3u;
693
693
SELECT * FROM test_type_conversion_mdarray_malformed();
694
-
ERROR: multidimensional arrays must have array expressions with matching dimensions. PL/Python function return value has sequence length 2 while expected 3
694
+
ERROR: wrong length of inner sequence: has length 2, but 3 was expected
695
+
DETAIL: To construct a multidimensional array, the inner sequences must all have the same length.
695
696
CONTEXT: while creating return value
696
697
PL/Python function "test_type_conversion_mdarray_malformed"
697
698
CREATE FUNCTION test_type_conversion_mdarray_toodeep() RETURNS int[] AS $$