Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A48C49FA5B5 for ; Tue, 31 Oct 2006 06:45:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 25114-09 for ; Tue, 31 Oct 2006 06:45:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id F28989FA12B for ; Tue, 31 Oct 2006 06:45:06 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail.jobflash.com (mail.jobflash.com [67.108.12.41]) by svr4.postgresql.org (Postfix) with ESMTP id EA1CB5AF031 for ; Tue, 31 Oct 2006 10:45:04 +0000 (GMT) Received: from [192.168.1.69] (adsl-68-124-176-63.dsl.pltn13.pacbell.net [68.124.176.63]) by mail.jobflash.com (Postfix) with ESMTP id B2CF4420DF; Tue, 31 Oct 2006 02:45:01 -0800 (PST) Message-ID: <4547292C.40602@jobflash.com> Date: Tue, 31 Oct 2006 02:45:00 -0800 From: Tom Arthurs User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Luca Ferrari Cc: pgsql-jdbc@postgresql.org Subject: Re: Date time format out of range???? References: <200610311118.55852.fluca1978@infinito.it> In-Reply-To: <200610311118.55852.fluca1978@infinito.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/149 X-Sequence-Number: 16032 There is no 31 Sept, the month only has 30 days. Luca Ferrari wrote: > 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 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 7: You can help support the PostgreSQL project by donating at > > http://www.postgresql.org/about/donate > > >