The attached keeps them from appearing. It needs to be tested to ensure it still does what is expected. -- Rod Taylor <[EMAIL PROTECTED]>
PGP Key: http://www.rbt.ca/rbtpub.asc
Index: src/interfaces/ecpg/pgtypeslib/timestamp.c =================================================================== RCS file: /home/rbt/work/postgresql/cvs/pgsql-server/src/interfaces/ecpg/pgtypeslib/timestamp.c,v retrieving revision 1.5 diff -c -r1.5 timestamp.c *** src/interfaces/ecpg/pgtypeslib/timestamp.c 1 Apr 2003 14:37:25 -0000 1.5 --- src/interfaces/ecpg/pgtypeslib/timestamp.c 25 Jun 2003 03:04:41 -0000 *************** *** 464,478 **** break; case 'g': /* XXX: fall back to strftime */ ! tm->tm_mon -= 1; ! i = strftime(q, *pstr_len, "%g", tm); ! if (i == 0) { return -1; } ! while (*q) { ! q++; ! (*pstr_len)--; } - tm->tm_mon += 1; - replace_type = PGTYPES_REPLACE_NOTHING; break; case 'H': replace_val.replace_uint = tm->tm_hour; --- 464,482 ---- break; case 'g': /* XXX: fall back to strftime */ ! { ! char *fmt = "%g"; /* Keep compiler quiet about 2-digit year */ ! ! tm->tm_mon -= 1; ! i = strftime(q, *pstr_len, fmt, tm); ! if (i == 0) { return -1; } ! while (*q) { ! q++; ! (*pstr_len)--; ! } ! tm->tm_mon += 1; ! replace_type = PGTYPES_REPLACE_NOTHING; } break; case 'H': replace_val.replace_uint = tm->tm_hour; *************** *** 602,616 **** break; case 'x': /* XXX: fall back to strftime */ ! tm->tm_mon -= 1; ! i = strftime(q, *pstr_len, "%x", tm); ! if (i == 0) { return -1; } ! while (*q) { ! q++; ! (*pstr_len)--; } - tm->tm_mon += 1; - replace_type = PGTYPES_REPLACE_NOTHING; break; case 'X': /* XXX: fall back to strftime */ --- 606,624 ---- break; case 'x': /* XXX: fall back to strftime */ ! { ! char *fmt = "%x"; /* Keep compiler quiet about 2-digit year */ ! ! tm->tm_mon -= 1; ! i = strftime(q, *pstr_len, fmt, tm); ! if (i == 0) { return -1; } ! while (*q) { ! q++; ! (*pstr_len)--; ! } ! tm->tm_mon += 1; ! replace_type = PGTYPES_REPLACE_NOTHING; } break; case 'X': /* XXX: fall back to strftime */
signature.asc
Description: This is a digitally signed message part