Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 277014f

Browse files
committed
Update regression tests for 32-bit system
1 parent cd71e51 commit 277014f

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

expected/array_1.out

+18-12
Original file line numberDiff line numberDiff line change
@@ -851,20 +851,26 @@ SELECT *, i <=> '{51}' from test_array_order WHERE i @> '{23,20}' order by i <=>
851851
Order By: (i <=> '{51}'::smallint[])
852852
(3 rows)
853853

854-
SELECT *, i <=> '{51}' from test_array_order WHERE i @> '{23,20}' order by i <=> '{51}';
855-
i | ?column?
854+
SELECT i,
855+
CASE WHEN distance = 'Infinity' THEN -1
856+
ELSE distance::numeric(18,14)
857+
END distance
858+
FROM
859+
(SELECT *, (i <=> '{51}') AS distance
860+
FROM test_array_order WHERE i @> '{23,20}' ORDER BY i <=> '{51}') t;
861+
i | distance
856862
---------------------+------------------
857863
{20,23,51} | 1.73205080756888
858864
{33,51,20,77,23,65} | 2.44948974278318
859-
{23,76,34,23,2,20} | Infinity
860-
{20,60,45,23,29} | Infinity
861-
{23,89,38,20,40,95} | Infinity
862-
{23,20,72} | Infinity
863-
{73,23,20} | Infinity
864-
{6,97,20,89,23} | Infinity
865-
{20,98,30,23,1,66} | Infinity
866-
{57,23,39,46,50,20} | Infinity
867-
{81,20,26,22,23} | Infinity
868-
{18,23,10,90,15,20} | Infinity
865+
{23,76,34,23,2,20} | -1
866+
{20,60,45,23,29} | -1
867+
{23,89,38,20,40,95} | -1
868+
{23,20,72} | -1
869+
{73,23,20} | -1
870+
{6,97,20,89,23} | -1
871+
{20,98,30,23,1,66} | -1
872+
{57,23,39,46,50,20} | -1
873+
{81,20,26,22,23} | -1
874+
{18,23,10,90,15,20} | -1
869875
(12 rows)
870876

0 commit comments

Comments
 (0)