From: Roland Walter <rwa@mosaic-ag.com>
To: Mike Morris <mcmorris95125@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: literal value in the select fieldlist returns not the string, but a java String object
Date: Mon, 31 Jul 2006 09:37:13 +0200
Message-ID: <rc41ws2p6mu.fsf@mosaic-ag.com> (raw)
In-Reply-To: <20060729050834.80628.qmail@web31808.mail.mud.yahoo.com>
References: <20060729050834.80628.qmail@web31808.mail.mud.yahoo.com>
Mike Morris <mcmorris95125@yahoo.com> writes:
> 1. (*) text/plain ( ) text/html
>
> Hi,
>
> I'm using pgsql/jdbc in an evaluation of "bluedragon", a coldfusion
> app server clone. Following is an email to the bluedragon folks, but
> the behavior is probably really JDBC driver related... can anyone
> confirm that?
>
> Briefly, the issue is that having a static, literal value in the
> select fieldlist returns not the string, but a java String object;
> not sure if this is the driver, or if bluedragon for some reason
> fails to do a toString() on it for some reason...
>
What do you expect from a JDBC-Driver? There is only the possibility
to return a String-value as a String-object or as an array of char,
and the JDBC-driver will do always the first. And I don't see how the
driver should be able to see the difference between a column that has
been filled by a constant value in the query or by a real column.
And even static literal values in Java are always String-objects.
I really do not understand what you mean with a static, literal
value. There is no such thing in Java.
Regards,
Roland.
--
Roland Walter mailto: rwa (at) mosaic-ag (dot) com
MOSAIC SOFTWARE AG phone: +49 (0) 22 25 / 88 2-44 9
Am Pannacker 3 fax: +49 (0) 22 25 / 88 2-20 1
D-53340 Meckenheim http://www.mosaic-ag.com
Die in dieser E-Mail enthaltenen Nachrichten und Anhaenge sind ausschliesslich
fuer den bezeichneten Adressaten bestimmt. Sie koennen rechtlich geschuetzte,
vertrauliche Informationen enthalten. Falls Sie nicht der bezeichnete Empfaenger
oder zum Empfang dieser E-Mail nicht berechtigt sind, ist die Verwendung,
Vervielfaeltigung oder Weitergabe von Nachrichten und Anhaengen untersagt.
Falls Sie diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte
unverzueglich den Absender und vernichten Sie die E-Mail.
This e-mail message and any attachment are intended exclusively for the named
addressee. They may contain confidential information which may also be protected
by professional secrecy. Unless you are the named addressee (or authorised to
receive for the addressee) you may not copy or use this message or any attachment
or disclose the contents to anyone else. If this e-mail was sent to you by mistake
please notify the sender immediately and delete this e-mail.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: rwa@mosaic-ag.com, mcmorris95125@yahoo.com
Subject: Re: literal value in the select fieldlist returns not the string, but a java String object
In-Reply-To: <rc41ws2p6mu.fsf@mosaic-ag.com>
References: <20060729050834.80628.qmail@web31808.mail.mud.yahoo.com> <rc41ws2p6mu.fsf@mosaic-ag.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox