[no subject]
But when I do this in Java I get this error message
SQLException: ERROR: date/time field value out of range: "13.04.06"
SQLState: 22008
VendorError: 0
This is because it reads the date format as mm.dd.yy because when I insert with the value '12.04.06' it works perfect. I've changed the datestyle in my Database to European but it still doesn't work. Do the JDBC driver only insert dates in the US format?
Olav
--0-977845243-1144939094=:60030
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
If I do an:<br><!--QuoteBegin--><div class="quotetop"><br></div><div class="quotemain"><!--QuoteEBegin-->INSERT INTO wdata (date)<br>VALUES ('13.04.06');<br><br>From the Query Tool in PGAdmin it will insert the dd.mm.yy format correctly without problems.<br><!--QuoteEnd--></div><!--QuoteEEnd--><br><br>But when I do this in Java I get this error message<br><br><!--QuoteBegin--><div class="quotemain"><!--QuoteEBegin-->SQLException: ERROR: date/time field value out of range: "13.04.06"<br>SQLState: 22008<br>VendorError: 0<br><!--QuoteEnd--></div><!--QuoteEEnd--><br>This is because it reads the date format as mm.dd.yy because when I insert with the value '12.04.06' it works perfect. I've changed the datestyle in my Database to European but it still doesn't work. Do the JDBC driver only insert dates in the US format?<br><br>Olav<br>
--0-977845243-1144939094=:60030--
Home |
Main Index |
Thread Index