pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Luca Ferrari <fluca1978@infinito.it>
To: pgsql-jdbc@postgresql.org
Subject: Date time format out of range????
Date: Tue, 31 Oct 2006 11:18:55 +0100
Message-ID: <200610311118.55852.fluca1978@infinito.it> (raw)

Hi,
I'm using my java application to access a pg8 database, but now I'm getting 
the following error performing the following insert:

[Logger - info] Preparing a statement for the query <INSERT INTO persona 
VALUES('FRR999','LUCA','FERRARI','19/07/1978','0000000000000','000000000','00000','BLLLLLLLLLLLLLLLLLL','Modena','Modena','','31/9/2006','luca','31/9/2006','luca')>
[Logger - error] Caught SQL exception in query execution 
org.postgresql.util.PSQLException: ERROR: date/time field value out of 
range: "31/9/2006"
org.postgresql.util.PSQLException: ERROR: date/time field value out of 
range: "31/9/2006"
	at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1525)
	at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1309)
	at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
	at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)


While in other tables it has worked with dates!
The information about the table persona are the followings:

gestione_personale=# \d persona;
                 Table "public.persona"
       Column       |         Type          | Modifiers
--------------------+-----------------------+-----------
 codice_fiscale     | character varying(20) | not null
 nome               | character varying(12) |
 cognome            | character varying(20) |
 data_nascita       | date                  |
 telefono           | character varying(20) |
 cellulare          | character varying(20) |
 fax                | character varying(20) |
 indirizzo          | character varying(50) |
 citta_nascita      | character varying(20) |
 citta_residenza    | character varying(20) |
 titolo_studio      | character varying(20) |
 data_inserimento   | date                  |
 utente_inserimento | character varying(20) |
 data_modifica      | date                  |
 utente_modifica    | character varying(20) |
Indexes:
    "persona_pkey" primary key, btree (codice_fiscale)
Foreign-key constraints:
    "$1" FOREIGN KEY (utente_inserimento) REFERENCES users(username)
    "$2" FOREIGN KEY (utente_modifica) REFERENCES users(username)
    "$3" FOREIGN KEY (titolo_studio) REFERENCES titolo_studio(titolo)
    "$4" FOREIGN KEY (citta_residenza) REFERENCES citta(denominazione)
    "$5" FOREIGN KEY (citta_nascita) REFERENCES citta(denominazione)


Any idea?
Thanks,
Luca



view thread (2+ messages)  latest in thread

Message-ID: <200610311118.55852.fluca1978@infinito.it>
Permalink:  ../200610311118.55852.fluca1978@infinito.it/
Also on:    postgresql.org/message-id/200610311118.55852.fluca1978@infinito.it

 · 

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-jdbc@postgresql.org
  Cc: fluca1978@infinito.it
  Subject: Re: Date time format out of range????
  In-Reply-To: <200610311118.55852.fluca1978@infinito.it>
  References: <200610311118.55852.fluca1978@infinito.it>

* 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