From 0b35b01e7ab0bae4eca85d434f884259e3187bcd Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 16 Oct 2006 19:58:27 +0000 Subject: Arrange for timezone names to be recognized case-insensitively; for example SET TIME ZONE 'america/new_york' works now. This seems a good idea on general user-friendliness grounds, and is part of the solution to the timestamp-input parsing problems I noted recently. --- src/timezone/zic.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/timezone/zic.c') diff --git a/src/timezone/zic.c b/src/timezone/zic.c index 8ef425367fc..039f6f73e07 100644 --- a/src/timezone/zic.c +++ b/src/timezone/zic.c @@ -3,7 +3,7 @@ * 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov). * * IDENTIFICATION - * $PostgreSQL: pgsql/src/timezone/zic.c,v 1.16 2005/10/15 02:49:51 momjian Exp $ + * $PostgreSQL: pgsql/src/timezone/zic.c,v 1.17 2006/10/16 19:58:27 tgl Exp $ */ #include "postgres.h" @@ -2387,11 +2387,11 @@ link(const char *oldpath, const char *newpath) #endif /* - * This allows zic to compile by just assigning a dummy value. + * This allows zic to compile by just returning a dummy value. * localtime.c references it, but no one uses it from zic. */ -char * -pg_TZDIR(void) +int +pg_open_tzfile(const char *name, char *canonname) { - return NULL; + return -1; } -- cgit v1.2.3