Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8eb6337

Browse files
committed
Remove platform-dependent PL/python test case.
Turns out that the output format of Python Decimal isn't totally platform-independent either. There are other tests for multi-dimensional arrays,so rather than try to fix this test case, just remove it.Per buildfarm member prairiedog.
1 parentcfd9c87 commit8eb6337

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

‎src/pl/plpython/expected/plpython_types.out

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -568,17 +568,6 @@ INFO: ([[[1L, 2L, None], [None, 5L, 6L]], [[None, 8L, 9L], [10L, 11L, 12L]]], <
568568
{{{1,2,NULL},{NULL,5,6}},{{NULL,8,9},{10,11,12}}}
569569
(1 row)
570570

571-
CREATE FUNCTION test_type_conversion_array_numeric(x numeric[]) RETURNS numeric[] AS $$
572-
plpy.info(x, type(x))
573-
return x
574-
$$ LANGUAGE plpythonu;
575-
SELECT * FROM test_type_conversion_array_numeric(ARRAY[[[1.2,2.3,NULL],[NULL,5.7,6.8]],[[NULL,8.9,9.345],[10.123,11.456,12.6768]]]::numeric[]);
576-
INFO: ([[[Decimal('1.2'), Decimal('2.3'), None], [None, Decimal('5.7'), Decimal('6.8')]], [[None, Decimal('8.9'), Decimal('9.345')], [Decimal('10.123'), Decimal('11.456'), Decimal('12.6768')]]], <type 'list'>)
577-
test_type_conversion_array_numeric
578-
------------------------------------------------------------------------------
579-
{{{1.2,2.3,NULL},{NULL,5.7,6.8}},{{NULL,8.9,9.345},{10.123,11.456,12.6768}}}
580-
(1 row)
581-
582571
CREATE FUNCTION test_type_conversion_array_date(x date[]) RETURNS date[] AS $$
583572
plpy.info(x, type(x))
584573
return x

‎src/pl/plpython/expected/plpython_types_3.out

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -568,17 +568,6 @@ INFO: ([[[1, 2, None], [None, 5, 6]], [[None, 8, 9], [10, 11, 12]]], <class 'li
568568
{{{1,2,NULL},{NULL,5,6}},{{NULL,8,9},{10,11,12}}}
569569
(1 row)
570570

571-
CREATE FUNCTION test_type_conversion_array_numeric(x numeric[]) RETURNS numeric[] AS $$
572-
plpy.info(x, type(x))
573-
return x
574-
$$ LANGUAGE plpython3u;
575-
SELECT * FROM test_type_conversion_array_numeric(ARRAY[[[1.2,2.3,NULL],[NULL,5.7,6.8]],[[NULL,8.9,9.345],[10.123,11.456,12.6768]]]::numeric[]);
576-
INFO: ([[[Decimal('1.2'), Decimal('2.3'), None], [None, Decimal('5.7'), Decimal('6.8')]], [[None, Decimal('8.9'), Decimal('9.345')], [Decimal('10.123'), Decimal('11.456'), Decimal('12.6768')]]], <class 'list'>)
577-
test_type_conversion_array_numeric
578-
------------------------------------------------------------------------------
579-
{{{1.2,2.3,NULL},{NULL,5.7,6.8}},{{NULL,8.9,9.345},{10.123,11.456,12.6768}}}
580-
(1 row)
581-
582571
CREATE FUNCTION test_type_conversion_array_date(x date[]) RETURNS date[] AS $$
583572
plpy.info(x, type(x))
584573
return x

‎src/pl/plpython/sql/plpython_types.sql

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,6 @@ $$ LANGUAGE plpythonu;
247247

248248
SELECT*FROM test_type_conversion_array_int8(ARRAY[[[1,2,NULL],[NULL,5,6]],[[NULL,8,9],[10,11,12]]]::int8[]);
249249

250-
CREATEFUNCTIONtest_type_conversion_array_numeric(xnumeric[]) RETURNSnumeric[]AS $$
251-
plpy.info(x, type(x))
252-
return x
253-
$$ LANGUAGE plpythonu;
254-
255-
SELECT*FROM test_type_conversion_array_numeric(ARRAY[[[1.2,2.3,NULL],[NULL,5.7,6.8]],[[NULL,8.9,9.345],[10.123,11.456,12.6768]]]::numeric[]);
256-
257250
CREATEFUNCTIONtest_type_conversion_array_date(xdate[]) RETURNSdate[]AS $$
258251
plpy.info(x, type(x))
259252
return x

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp