| From: | "Josh Berkus" <josh(at)agliodbs(dot)com> |
|---|---|
| To: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Date validation? |
| Date: | 2001-06-30 21:08:45 |
| Message-ID: | web-79482@davinci.ethosmedia.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Folks,
Is there any PgSQL or PL/pgSQL function which validates dates? I've
tried ISFINITE and CAST ... AS DATE but these suffer fatal errors if the
date isn't valid (e.g. '2001-06-31'). I need a test I can trap inside a
PL/pgSQL function.
-Josh Berkus
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
| Attachment | Content-Type | Size |
|---|---|---|
| unknown_filename | text/plain | 2 bytes |
| unknown_filename | text/plain | 2 bytes |
| unknown_filename | text/plain | 2 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dado Feigenblatt | 2001-07-01 00:04:43 | Re: creating variable views |
| Previous Message | Richard Huxton | 2001-06-30 11:49:16 | Re: creating variable views |