MySQL and Date Type columns with 2005-05-00 contents
- From: "news@xxxxxxxxxxxxxxxxx" <news@xxxxxxxxxxxxxxxxx>
- Date: 20 Dec 2005 05:42:34 -0800
Hi,
I'm currently trying to read a table from an MySQL database that has a
column of type Date which might contain entries like 2005-05-00.
Everything works as expected when it's used from PHP, but when I do an
getString on the resultSet, the Date Column gets converted to an Java
SQL Date type which does not accept such a Date field. And thus gives
me the result 2005-04-31. But what I really want is just the Date
Column as a STRING. I don't want it to get converted somewhere...
Btw, the 2005-05-00 should represent a Date where the Day is unknown or
not applicable. And I definitly need those cases...
Thanks for any hints in advance,
Karsten
.
- Follow-Ups:
- Re: MySQL and Date Type columns with 2005-05-00 contents
- From: Silvio Bierman
- Re: MySQL and Date Type columns with 2005-05-00 contents
- From: Darko Topolsek
- Re: MySQL and Date Type columns with 2005-05-00 contents
- Prev by Date: Re: Another Tomcat DataSource Question
- Next by Date: Re: MySQL and Date Type columns with 2005-05-00 contents
- Previous by thread: Another Tomcat DataSource Question
- Next by thread: Re: MySQL and Date Type columns with 2005-05-00 contents
- Index(es):
Relevant Pages
|
|