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

Commit902ba8d

Browse files
committed
Add version.sql test
Current version check was moved from init.sql into version.sql becauseinit.sql it is not executed with the 'test' target.
1 parentf229b2e commit902ba8d

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

‎Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ DATA_built = $(RELEASE_SQL) \
3535
pg_sphere--1.3.1--1.4.0.sql
3636

3737
DOCS = README.pg_sphere COPYRIGHT.pg_sphere
38-
TESTS = tables points euler circle line ellipse poly path box\
38+
TESTS =versiontables points euler circle line ellipse poly path box\
3939
index contains_ops contains_ops_compat bounding_box_gist gnomo\
4040
epochprop contains overlaps spoint_brin sbox_brin selectivity
4141
REGRESS = init$(TESTS)

‎expected/init.out

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
--
2-
-- first, define the datatype. Turn off echoing so that expected file
3-
-- does not depend on contents of pg_sphere.sql.
2+
-- Initialize the extension.
43
--
54
CREATE EXTENSION pg_sphere;
6-
select pg_sphere_version();
7-
pg_sphere_version
8-
-------------------
9-
1.4.0
10-
(1 row)
11-

‎expected/version.out

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- Check current pgsphere version
2+
SELECT pg_sphere_version();
3+
pg_sphere_version
4+
-------------------
5+
1.4.0
6+
(1 row)
7+

‎sql/init.sql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
--
2-
-- first, define the datatype. Turn off echoing so that expected file
3-
-- does not depend on contents of pg_sphere.sql.
2+
-- Initialize the extension.
43
--
54
CREATE EXTENSION pg_sphere;
6-
7-
select pg_sphere_version();

‎sql/version.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Check current pgsphere version
2+
SELECT pg_sphere_version();
3+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp