Re: MySQL and Date Type columns with 2005-05-00 contents
- From: "news@xxxxxxxxxxxxxxxxx" <news@xxxxxxxxxxxxxxxxx>
- Date: 20 Dec 2005 06:12:45 -0800
Darko Topolsek schrieb:
> Hi Karsten,
>
> if you just need date column as a String
> why dont you declare date field in database like String ...
>
Because performance would suck, and I just change them less frequently
then they get read. And as this tool should be quite independent from
the database structure, I don't have an influence on it..
Karsten
> Warm Regards
> Darko Topolsek
> programmer
> urbi et orbi
>
> <news@xxxxxxxxxxxxxxxxx> wrote in message
> news:1135086154.210908.18720@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > 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
> >
.
- References:
- MySQL and Date Type columns with 2005-05-00 contents
- From: news@xxxxxxxxxxxxxxxxx
- Re: MySQL and Date Type columns with 2005-05-00 contents
- From: Darko Topolsek
- MySQL and Date Type columns with 2005-05-00 contents
- Prev by Date: Re: MySQL and Date Type columns with 2005-05-00 contents
- Next by Date: JDeveloper question
- Previous by thread: Re: MySQL and Date Type columns with 2005-05-00 contents
- Next by thread: Re: MySQL and Date Type columns with 2005-05-00 contents
- Index(es):
Relevant Pages
|
|