1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

here is a patch for formatting.c (to_char/timestampt()), for 7.1

it fixing Y,YY,YYY,YYYY conversion, the docs and regress tests update
 are included too.

  During the patch testing I found small bug in miscadmin.h in
convertstr() declaration. Here it's fixed too.

 Thanks

        Karel
This commit is contained in:
Bruce Momjian
2000-11-25 05:00:33 +00:00
parent 91ba4cc761
commit 3f1998727d
5 changed files with 242 additions and 100 deletions

View File

@ -962,6 +962,20 @@
keyword (example: <literal>'"Hello Year: "YYYY'</literal>).
</para>
</listitem>
<listitem>
<para>
<literal>YYYY</literal> conversion from string to timestamp or
date is limited if you use year great than 4-digits. You must
use after <literal>YYYY</literal> some non-digit char or template
else year is always interpreted as 4-digits. For example (with year
20000):
<literal> to_date('200001131', 'YYYYMMDD') <literal> will bad
interpreded as 4-digits year, right is use after year non-digit
separator <literal> to_date('20000-1131', 'YYYY-MMDD')<literal> or
<literal> to_date('20000Nov31', 'YYYYMonDD')<literal>.
</para>
</listitem>
</itemizedlist>
</para>