From: | svn(at)pgadmin(dot)org |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | SVN Commit by dpage: r4513 - trunk/pgadmin3/xtra/admin |
Date: | 2005-10-06 15:42:10 |
Message-ID: | 200510061542.j96FgAAT004966@developer.pgadmin.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Author: dpage
Date: 2005-10-06 16:42:10 +0100 (Thu, 06 Oct 2005)
New Revision: 4513
Modified:
trunk/pgadmin3/xtra/admin/misc.c
Log:
Hack-fix the admin module for 8.0.4
Modified: trunk/pgadmin3/xtra/admin/misc.c
===================================================================
--- trunk/pgadmin3/xtra/admin/misc.c 2005-10-06 12:12:53 UTC (rev 4512)
+++ trunk/pgadmin3/xtra/admin/misc.c 2005-10-06 15:42:10 UTC (rev 4513)
@@ -173,8 +173,19 @@
values[0] = de->d_name + 11; /* timestamp */
values[0][17] = 0;
- /* parse and decode expected timestamp */
- if (ParseDateTime(values[0], lowstr, field, ftype, MAXDATEFIELDS, &nf))
+ /* parse and decode expected timestamp */
+
+ /* The ParseDateTime signature changed in PostgreSQL 8.0.4. Because
+ * there is no way to check the PG version at build time at present
+ * we'll have to keep a manual condition compile here :-(
+ * Use the following line for < 8.0.4, otherwise, use the uncommented
+ * version below.
+ *
+ * if (ParseDateTime(values[0], lowstr, field, ftype, MAXDATEFIELDS, &nf))
+ *
+ */
+
+ if (ParseDateTime(values[0], lowstr, sizeof(lowstr), field, ftype, MAXDATEFIELDS, &nf))
continue;
if (DecodeDateTime(field, ftype, nf, &dtype, &date, &fsec, &tz))
From | Date | Subject | |
---|---|---|---|
Next Message | Hiroshi Saito | 2005-10-06 16:08:17 | dlgJob.xrc patch |
Previous Message | Dave Page | 2005-10-06 14:34:36 | Don't show this hint again broken? |