Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 9B24E9FB1D3 for ; Tue, 31 Oct 2006 06:19:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 79231-03 for ; Tue, 31 Oct 2006 10:18:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from aa016msg.fastweb.it (aa016msg.fastweb.it [213.140.2.83]) by postgresql.org (Postfix) with ESMTP id 7EF259FA12B for ; Tue, 31 Oct 2006 06:18:57 -0400 (AST) Received: from ms011msg.fastweb.it (10.31.40.27) by aa016msg.fastweb.it (7.3.105.6) id 4535D645005B79D4 for pgsql-jdbc@postgresql.org; Tue, 31 Oct 2006 11:18:11 +0100 Received: from [192.168.1.201] (85.18.239.131) by ms011msg.fastweb.it (7.2.070) id 443CC12D04E3A0E9 for pgsql-jdbc@postgresql.org; Tue, 31 Oct 2006 11:18:56 +0100 From: Luca Ferrari To: pgsql-jdbc@postgresql.org Subject: Date time format out of range???? Date: Tue, 31 Oct 2006 11:18:55 +0100 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610311118.55852.fluca1978@infinito.it> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/148 X-Sequence-Number: 16031 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 [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