SVN Commit by dpage: r4513 - trunk/pgadmin3/xtra/admin
От | svn@pgadmin.org |
---|---|
Тема | SVN Commit by dpage: r4513 - trunk/pgadmin3/xtra/admin |
Дата | |
Msg-id | 200510061542.j96FgAAT004966@developer.pgadmin.org обсуждение исходный текст |
Список | 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))
В списке pgadmin-hackers по дате отправления: