Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 31845dd

Browse files
committed
Fix abstime-to-time cast function, which has had broken implementation
since 7.2, per bug #947. Turns out it had wrong volatility label, too. Can't force initdb in 7.3 branch, but fix anyway for future installs.
1 parent 0b88b63 commit 31845dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/catalog/pg_proc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_proc.h,v 1.292 2003/04/08 23:20:03 tgl Exp $
10+
* $Id: pg_proc.h,v 1.293 2003/04/17 04:50:20 tgl Exp $
1111
*
1212
* NOTES
1313
* The script catalog/genbki.sh reads this file and generates .bki
@@ -1698,7 +1698,7 @@ DESCR("less-equal-greater");
16981698
DATA(insert OID = 1359 ( timestamptz PGNSP PGUID 12 f f t f i 2 1184 "1082 1266" datetimetz_timestamptz - _null_ ));
16991699
DESCR("convert date and time with time zone to timestamp with time zone");
17001700

1701-
DATA(insert OID = 1364 ( time PGNSP PGUID 14 f f t f i 1 1083 "702" "select time(cast($1 as timestamp without time zone))" - _null_ ));
1701+
DATA(insert OID = 1364 ( time PGNSP PGUID 14 f f t f s 1 1083 "702" "select cast(cast($1 as timestamp without time zone) as time)" - _null_ ));
17021702
DESCR("convert abstime to time");
17031703

17041704
DATA(insert OID = 1367 ( character_length PGNSP PGUID 12 f f t f i 1 23 "1042" bpcharlen - _null_ ));

0 commit comments

Comments
 (0)