"...postgres-fd-implementation.git" did not exist on "bd9b2fa84b03d876966a5a0859b45e6256e26581"
Commit b2f2e031 authored by Marc G. Fournier's avatar Marc G. Fournier

More misc patches from Thomas for regression tests and linux templates

parent ba1a5891
No related merge requests found
AROPT:crs AROPT:crs
CFLAGS: CFLAGS:-O2
SHARED_LIB:-fpic SHARED_LIB:-fpic
ALL: ALL:
SRCH_INC: SRCH_INC:/usr/include/ncurses /usr/include/readline
SRCH_LIB: SRCH_LIB:
USE_LOCALE:no USE_LOCALE:no
DLSUFFIX:.o DLSUFFIX:.so
YFLAGS:-d YFLAGS:-d
YACC: bison -y YACC:bison -y
...@@ -6,19 +6,19 @@ QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 34 year'); ...@@ -6,19 +6,19 @@ QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 34 year');
QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 3 months'); QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 3 months');
QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 14 seconds ago'); QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 14 seconds ago');
QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('badly formatted reltime'); QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('badly formatted reltime');
WARN:Bad reltime external representation 'badly formatted reltime'
QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 30 eons ago'); QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 30 eons ago');
QUERY: SELECT '' AS eight, RELTIME_TBL.*; WARN:Bad reltime external representation '@ 30 eons ago'
eight|f1 QUERY: SELECT '' AS six, RELTIME_TBL.*;
-----+----------------- six|f1
|@ 1 minute ---+----------------
|@ 5 hours |@ 1 minute
|@ 10 days |@ 5 hours
|@ 34 years |@ 10 days
|@ 3 months |@ 34 years
|@ 14 seconds ago |@ 3 months
|Undefined RelTime |@ 14 seconds ago
|Undefined RelTime (6 rows)
(8 rows)
QUERY: SELECT '' AS five, RELTIME_TBL.* QUERY: SELECT '' AS five, RELTIME_TBL.*
WHERE RELTIME_TBL.f1 <> '@ 10 days'::reltime; WHERE RELTIME_TBL.f1 <> '@ 10 days'::reltime;
......
#!/bin/sh #!/bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.6 1997/04/06 08:53:34 scrappy Exp $ # $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.7 1997/04/26 05:49:39 scrappy Exp $
# #
if [ -d ./obj ]; then if [ -d ./obj ]; then
cd ./obj cd ./obj
fi fi
TZ="PST8PDT"; export TZ TZ="PST8PDT7,M04.01.00,M10.05.03"; export TZ
#FRONTEND=monitor #FRONTEND=monitor
FRONTEND="psql -n -e -q" FRONTEND="psql -n -e -q"
echo =============== Notes... =================
echo "You must be already running the postmaster"
echo " for the regression tests to succeed."
echo "The time zone might need to be set to PST/PDT"
echo " for the date and time data types to pass the"
echo " regression tests; to do this type"
echo " setenv TZ $TZ"
echo " before starting the postmaster."
echo =============== destroying old regression database... ================= echo =============== destroying old regression database... =================
destroydb regression destroydb regression
......
...@@ -20,7 +20,7 @@ INSERT INTO RELTIME_TBL (f1) VALUES ('@ 30 eons ago'); ...@@ -20,7 +20,7 @@ INSERT INTO RELTIME_TBL (f1) VALUES ('@ 30 eons ago');
-- test reltime operators -- test reltime operators
SELECT '' AS eight, RELTIME_TBL.*; SELECT '' AS six, RELTIME_TBL.*;
SELECT '' AS five, RELTIME_TBL.* SELECT '' AS five, RELTIME_TBL.*
WHERE RELTIME_TBL.f1 <> '@ 10 days'::reltime; WHERE RELTIME_TBL.f1 <> '@ 10 days'::reltime;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment