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

Commitfdcf5ff

Browse files
committed
Remove comments psql was putting in output, typo's.
psql now returns error from queries and errors files, so ignore return code.
1 parent0365c51 commitfdcf5ff

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

‎src/test/regress/expected.input

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -416,15 +416,15 @@ QUERY: CREATE OPERATOR <% (
416416
commutator = >=%
417417
);
418418
QUERY: CREATE OPERATOR @#@ (
419-
rightarg = int4,-- left unary
419+
rightarg = int4,
420420
procedure = int4fac
421421
);
422422
QUERY: CREATE OPERATOR #@# (
423-
leftarg = int4,-- right unary
423+
leftarg = int4,
424424
procedure = int4fac
425425
);
426426
QUERY: CREATE OPERATOR #%# (
427-
leftarg = int4,-- right unary
427+
leftarg = int4,
428428
procedure = int4fac
429429
);
430430
QUERY: CREATE VIEW street AS
@@ -799,7 +799,7 @@ six|f1
799799
(6 rows)
800800

801801
QUERY: SELECT '' AS five, ABSTIME_TBL.*
802-
WHERE (ABSTIME_TBL.f1 + '@ 3 year'::reltime) -- +3 years
802+
WHERE (ABSTIME_TBL.f1 + '@ 3 year'::reltime)
803803
< 'Jan 14 14:00:00 1977'::abstime;
804804
five|f1
805805
----+----------------------------
@@ -811,7 +811,7 @@ five|f1
811811
(5 rows)
812812

813813
QUERY: SELECT '' AS five, ABSTIME_TBL.*
814-
WHERE (ABSTIME_TBL.f1 + '@ 3 year ago'::reltime) -- -3 years
814+
WHERE (ABSTIME_TBL.f1 + '@ 3 year ago'::reltime)
815815
< 'Jan 14 14:00:00 1971'::abstime;
816816
five|f1
817817
----+----------------------------
@@ -823,7 +823,7 @@ five|f1
823823
(5 rows)
824824

825825
QUERY: SELECT '' AS five, ABSTIME_TBL.*
826-
WHERE (ABSTIME_TBL.f1 - '@ 3 year'::reltime) -- -(+3) years
826+
WHERE (ABSTIME_TBL.f1 - '@ 3 year'::reltime)
827827
< 'Jan 14 14:00:00 1971'::abstime;
828828
five|f1
829829
----+----------------------------
@@ -835,7 +835,7 @@ five|f1
835835
(5 rows)
836836

837837
QUERY: SELECT '' AS five, ABSTIME_TBL.*
838-
WHERE (ABSTIME_TBL.f1 - '@ 3 year ago'::reltime) -- -(-3) years
838+
WHERE (ABSTIME_TBL.f1 - '@ 3 year ago'::reltime)
839839
< 'Jan 14 14:00:00 1977'::abstime;
840840
five|f1
841841
----+----------------------------

‎src/test/regress/queries.source

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--
22
-- queries.source
33
--
4-
-- $Header: /cvsroot/pgsql/src/test/regress/Attic/queries.source,v 1.3 1996/10/30 02:02:39 momjian Exp $
4+
-- $Header: /cvsroot/pgsql/src/test/regress/Attic/queries.source,v 1.4 1996/11/14 16:09:26 momjian Exp $
55
--
66
-- The comments that contain sequences of UNIX commands generate the
77
-- desired output for the POSTQUEL statement(s).
@@ -837,9 +837,9 @@ SELECT '' AS bad, f.f1 * '1e200' from FLOAT8_TBL f;
837837

838838
SELECT '' AS bad, f.f1 ^ '1e200' from FLOAT8_TBL f;
839839

840-
SELECT '' AS bad,; (f.f1) from FLOAT8_TBL f where f.f1 = '0.0' ;
840+
SELECT '' AS bad,: (f.f1) from FLOAT8_TBL f where f.f1 = '0.0' ;
841841

842-
SELECT '' AS bad,; (f.f1) from FLOAT8_TBL f where f.f1 < '0.0' ;
842+
SELECT '' AS bad,: (f.f1) from FLOAT8_TBL f where f.f1 < '0.0' ;
843843

844844
SELECT '' AS bad, : (f.f1) from FLOAT8_TBL f;
845845

‎src/test/regress/regress.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.2 1996/10/30 02:02:41 momjian Exp $
2+
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.3 1996/11/14 16:09:28 momjian Exp $
33
#
44
if [-d ./obj ];then
55
cd ./obj
@@ -28,17 +28,11 @@ fi
2828

2929
echo =============== running regression queries ... =================
3030
$FRONTEND regression< queries.sql
31-
if [$?-ne 0 ];then
32-
echo the queries script causes an error
33-
exit 1
34-
fi
31+
# this will generate error result code
3532

3633
echo =============== running error queries ... =================
3734
$FRONTEND regression< errors.sql
38-
if [$?-ne 0 ];then
39-
echo the errors script has an unanticipated problem
40-
exit 1
41-
fi
35+
# this will generate error result code
4236

4337
#set this to 1 to avoid clearing the database
4438
debug=0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp