mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Fix earthdistance test suite function name typo.
Affected test queries have been testing the wrong thing since their introduction in commit 4c1383efd132e4f532213c8a8cc63a455f55e344. Back-patch to 9.3 (all supported versions).
This commit is contained in:
parent
ca4a6de174
commit
e7688696db
@ -882,11 +882,12 @@ SELECT earth_box(ll_to_earth(90,180),
|
|||||||
--
|
--
|
||||||
-- Test the recommended constraints.
|
-- Test the recommended constraints.
|
||||||
--
|
--
|
||||||
SELECT is_point(ll_to_earth(0,0));
|
SELECT cube_is_point(ll_to_earth(0,0));
|
||||||
ERROR: function is_point(earth) does not exist
|
cube_is_point
|
||||||
LINE 1: SELECT is_point(ll_to_earth(0,0));
|
---------------
|
||||||
^
|
t
|
||||||
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
|
(1 row)
|
||||||
|
|
||||||
SELECT cube_dim(ll_to_earth(0,0)) <= 3;
|
SELECT cube_dim(ll_to_earth(0,0)) <= 3;
|
||||||
?column?
|
?column?
|
||||||
----------
|
----------
|
||||||
@ -900,11 +901,12 @@ SELECT abs(cube_distance(ll_to_earth(0,0), '(0)'::cube) / earth() - 1) <
|
|||||||
t
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT is_point(ll_to_earth(30,60));
|
SELECT cube_is_point(ll_to_earth(30,60));
|
||||||
ERROR: function is_point(earth) does not exist
|
cube_is_point
|
||||||
LINE 1: SELECT is_point(ll_to_earth(30,60));
|
---------------
|
||||||
^
|
t
|
||||||
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
|
(1 row)
|
||||||
|
|
||||||
SELECT cube_dim(ll_to_earth(30,60)) <= 3;
|
SELECT cube_dim(ll_to_earth(30,60)) <= 3;
|
||||||
?column?
|
?column?
|
||||||
----------
|
----------
|
||||||
@ -918,11 +920,12 @@ SELECT abs(cube_distance(ll_to_earth(30,60), '(0)'::cube) / earth() - 1) <
|
|||||||
t
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT is_point(ll_to_earth(60,90));
|
SELECT cube_is_point(ll_to_earth(60,90));
|
||||||
ERROR: function is_point(earth) does not exist
|
cube_is_point
|
||||||
LINE 1: SELECT is_point(ll_to_earth(60,90));
|
---------------
|
||||||
^
|
t
|
||||||
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
|
(1 row)
|
||||||
|
|
||||||
SELECT cube_dim(ll_to_earth(60,90)) <= 3;
|
SELECT cube_dim(ll_to_earth(60,90)) <= 3;
|
||||||
?column?
|
?column?
|
||||||
----------
|
----------
|
||||||
@ -936,11 +939,12 @@ SELECT abs(cube_distance(ll_to_earth(60,90), '(0)'::cube) / earth() - 1) <
|
|||||||
t
|
t
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT is_point(ll_to_earth(-30,-90));
|
SELECT cube_is_point(ll_to_earth(-30,-90));
|
||||||
ERROR: function is_point(earth) does not exist
|
cube_is_point
|
||||||
LINE 1: SELECT is_point(ll_to_earth(-30,-90));
|
---------------
|
||||||
^
|
t
|
||||||
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
|
(1 row)
|
||||||
|
|
||||||
SELECT cube_dim(ll_to_earth(-30,-90)) <= 3;
|
SELECT cube_dim(ll_to_earth(-30,-90)) <= 3;
|
||||||
?column?
|
?column?
|
||||||
----------
|
----------
|
||||||
|
@ -282,19 +282,19 @@ SELECT earth_box(ll_to_earth(90,180),
|
|||||||
-- Test the recommended constraints.
|
-- Test the recommended constraints.
|
||||||
--
|
--
|
||||||
|
|
||||||
SELECT is_point(ll_to_earth(0,0));
|
SELECT cube_is_point(ll_to_earth(0,0));
|
||||||
SELECT cube_dim(ll_to_earth(0,0)) <= 3;
|
SELECT cube_dim(ll_to_earth(0,0)) <= 3;
|
||||||
SELECT abs(cube_distance(ll_to_earth(0,0), '(0)'::cube) / earth() - 1) <
|
SELECT abs(cube_distance(ll_to_earth(0,0), '(0)'::cube) / earth() - 1) <
|
||||||
'10e-12'::float8;
|
'10e-12'::float8;
|
||||||
SELECT is_point(ll_to_earth(30,60));
|
SELECT cube_is_point(ll_to_earth(30,60));
|
||||||
SELECT cube_dim(ll_to_earth(30,60)) <= 3;
|
SELECT cube_dim(ll_to_earth(30,60)) <= 3;
|
||||||
SELECT abs(cube_distance(ll_to_earth(30,60), '(0)'::cube) / earth() - 1) <
|
SELECT abs(cube_distance(ll_to_earth(30,60), '(0)'::cube) / earth() - 1) <
|
||||||
'10e-12'::float8;
|
'10e-12'::float8;
|
||||||
SELECT is_point(ll_to_earth(60,90));
|
SELECT cube_is_point(ll_to_earth(60,90));
|
||||||
SELECT cube_dim(ll_to_earth(60,90)) <= 3;
|
SELECT cube_dim(ll_to_earth(60,90)) <= 3;
|
||||||
SELECT abs(cube_distance(ll_to_earth(60,90), '(0)'::cube) / earth() - 1) <
|
SELECT abs(cube_distance(ll_to_earth(60,90), '(0)'::cube) / earth() - 1) <
|
||||||
'10e-12'::float8;
|
'10e-12'::float8;
|
||||||
SELECT is_point(ll_to_earth(-30,-90));
|
SELECT cube_is_point(ll_to_earth(-30,-90));
|
||||||
SELECT cube_dim(ll_to_earth(-30,-90)) <= 3;
|
SELECT cube_dim(ll_to_earth(-30,-90)) <= 3;
|
||||||
SELECT abs(cube_distance(ll_to_earth(-30,-90), '(0)'::cube) / earth() - 1) <
|
SELECT abs(cube_distance(ll_to_earth(-30,-90), '(0)'::cube) / earth() - 1) <
|
||||||
'10e-12'::float8;
|
'10e-12'::float8;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user