pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roland_DUBOULOZ <Roland.Dubouloz@bull.net>
To: pgsql-sql@postgreSQL.org
Subject: Bad date representation
Date: Fri, 09 Jul 1999 11:25:13 +0200
Message-ID: <3785BFF9.B569809@bull.net> (raw)

Is there a bug in the postmaster ?
with -e option the date must be in European format
but with no options the date may be in European or American format !

create table FOO (date date);

1.- postmaster -i -o -e 

  insert into FOO values('20-06-1999'); 
  insert into FOO values('06-21-1999');
  we have a "Bad date external representation" that is true.

2.-postmaster -i

  insert into FOO values('06-22-1999');
  insert into FOO values('06-07-1999');
  insert into FOO values('23-06-1999');  <---- no ERROR
   WE Have NO ERROR !!!!! why ???

and on select * from FOO the result is 

	date
  ----------
  06-22-1999
  06-07-1999
  06-23-1999



-- 
Roland Dubouloz			BULL XS/BU
BULL SA				mailto:Roland.Dubouloz@bull.net
1,Rue de Provence		Phone :+33 (0)4 76 29 77 87
BP 208				Bullcom : 229-7787
38432 Echirolles CEDEX		Office  : A1-052
France				Fax     : +33 (0)4 76 29 70 02



view thread (2+ messages)  latest in thread

Message-ID: <3785BFF9.B569809@bull.net>
Permalink:  ../3785BFF9.B569809@bull.net/
Also on:    postgresql.org/message-id/3785BFF9.B569809@bull.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: Roland.Dubouloz@bull.net
  Subject: Re: Bad date representation
  In-Reply-To: <3785BFF9.B569809@bull.net>
  References: <3785BFF9.B569809@bull.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox