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


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

Re: Problem with JDBC driver and MySQL date_format function

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From Stanimir Stamenkov <s7an10@netscape.net>
Newsgroups comp.lang.java.databases
Subject Re: Problem with JDBC driver and MySQL date_format function
Date Mon, 16 May 2011 08:35:00 +0300
Organization A noiseless patient Spider
Lines 25
Message-ID <iqqd23$dq4$1@dont-email.me> (permalink)
References <9340c7F40hU1@mid.individual.net> <939s7hFsqnU1@mid.individual.net> <nospam-96B5BF.19514915052011@news.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Mon, 16 May 2011 05:35:00 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="Fyju87nn2Wd5NATDUyHICA"; logging-data="14148"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/u5KPVZjcZbIE4SJcqdz5J"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20110511 SeaMonkey/2.1
In-Reply-To <nospam-96B5BF.19514915052011@news.aioe.org>
X-Face )>>ChyF_H<b)u~Zjgo/=wa~;=qyW%.F\L.d^fKL[;y\=tY\]M}2t(a^;PKS}9g|k@\vkA<P Q|4?kcJ52334f:CaCrQZ=]D~txPPh6[y{xHkZ+4/KPKZ~|*K#?EqeP0W]iU*Ldy-hyjh0)N4c.I<m) K}GsUUe0)~24Xp`Jt
Cancel-Lock sha1:ivADBYxgv7k8W4DOwhjyknXoLF8=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.databases:449

Show key headers only | View raw


Sun, 15 May 2011 19:51:49 -0400, /John B. Matthews/:
> In article <939s7hFsqnU1@mid.individual.net>, Hans Castorp wrote:
>> Jens Riedel wrote on 13.05.2011 08:11:
>>
>>> 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.
>>
>> That sure looks like the default toString() output of
>> java.lang.Object
>
> No, java.lang.Object looks like this: java.lang.Object@771c8a71

That looks like the output of java.lang.Object.toString() invoked on 
a byte[] instance:

     getClass().getName() + '@' + Integer.toHexString(hashCode())

http://download.oracle.com/javase/6/docs/api/java/lang/Object.html#toString%28%29

http://download.oracle.com/javase/6/docs/api/java/lang/Class.html#getName%28%29

-- 
Stanimir

Back to comp.lang.java.databases | Previous | NextPrevious in thread | Next 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