Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.databases > #443

Problem with JDBC driver and MySQL date_format function

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Jens Riedel <JensRie@gmx.de>
Newsgroups comp.lang.java.databases
Subject Problem with JDBC driver and MySQL date_format function
Date Fri, 13 May 2011 08:11:19 +0200
Lines 17
Message-ID <9340c7F40hU1@mid.individual.net> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net uU1ptGl0dmY/mFBkvgefVATtuvL+sXZgU4vHt668gS5wRlafpB
Cancel-Lock sha1:jPsRYJYVJdGk4MnhpW/nquJl6zU=
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.databases:443

Show key headers only | View raw


Hello,

I have the following problem with a java application:

Since I updated my mysql driver version 3 to version 5 
(mysql-connector-java-5.1.7-bin.jar) I get funny strings like 
"[B@b57546" when I format datetime columns with the date_format function 
instead of the correct formatted date string.

When I execute the statement with HeidiSQL or another DB client directly 
everything is working fine, also when I switch back to 
mysql-connector-java-3.1.12-bin.jar.

Does anybody know this problem and a solution for this?

Thanks
Jens

Back to comp.lang.java.databases | Previous | NextNext in thread | Find similar


Thread

Problem with JDBC driver and MySQL date_format function Jens Riedel <JensRie@gmx.de> - 2011-05-13 08:11 +0200
  Re: Problem with JDBC driver and MySQL date_format function "John B. Matthews" <nospam@nospam.invalid> - 2011-05-14 18:19 -0400
    Re: Problem with JDBC driver and MySQL date_format function Lew <noone@lewscanon.com> - 2011-05-15 06:59 -0400
  Re: Problem with JDBC driver and MySQL date_format function Hans Castorp <REWYRLXHEGHO@spammotel.com> - 2011-05-15 13:37 +0200
    Re: Problem with JDBC driver and MySQL date_format function "John B. Matthews" <nospam@nospam.invalid> - 2011-05-15 19:51 -0400
      Re: Problem with JDBC driver and MySQL date_format function Stanimir Stamenkov <s7an10@netscape.net> - 2011-05-16 08:35 +0300
        Re: Problem with JDBC driver and MySQL date_format function Lew <noone@lewscanon.com> - 2011-05-16 01:42 -0400
          Re: Problem with JDBC driver and MySQL date_format function "John B. Matthews" <nospam@nospam.invalid> - 2011-05-16 08:46 -0400
            Re: Problem with JDBC driver and MySQL date_format function Lew <noone@lewscanon.com> - 2011-05-16 10:23 -0400
  Re: Problem with JDBC driver and MySQL date_format function Jens Riedel <JensRie@gmx.de> - 2011-05-15 21:17 +0200

csiph-web