X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id BB6899FB34F for ; Mon, 31 Jul 2006 04:38:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 58989-04 for ; Mon, 31 Jul 2006 04:37:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mosaic02.mosaic.de (mosaic02.mosaic.de [195.247.16.18]) by postgresql.org (Postfix) with ESMTP id 3C7F89FB34E for ; Mon, 31 Jul 2006 04:37:18 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id 04FAC778C3; Mon, 31 Jul 2006 09:39:19 +0200 (CEST) Received: from mosaic02.mosaic.de ([127.0.0.1]) by localhost (mosaic02.mosaic-ag.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14180-05; Mon, 31 Jul 2006 09:39:18 +0200 (CEST) Received: from mailproxy.mosaic.de (proxy01.mosaic.de [172.17.201.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id 446B6778A3; Mon, 31 Jul 2006 09:39:18 +0200 (CEST) Received: by mailproxy.mosaic.de (Postfix, from userid 10000) id CBD943A71B; Mon, 31 Jul 2006 09:37:15 +0200 (CEST) Received: from enterprise.mosaic-ag.com (enterprise.mosaic-ag.com [172.17.4.21]) by mailproxy.mosaic.de (Postfix) with ESMTP id BDB7A3A719; Mon, 31 Jul 2006 09:37:15 +0200 (CEST) Received: from aupc287.mosaic-ag.com ([172.17.1.87]) by enterprise.mosaic-ag.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 31 Jul 2006 09:35:56 +0200 To: Mike Morris Cc: pgsql-jdbc@postgresql.org Subject: Re: literal value in the select fieldlist returns not the string, but a java String object References: <20060729050834.80628.qmail@web31808.mail.mud.yahoo.com> From: Roland Walter Date: Mon, 31 Jul 2006 09:37:13 +0200 In-Reply-To: <20060729050834.80628.qmail@web31808.mail.mud.yahoo.com> (Mike Morris's message of "Fri, 28 Jul 2006 22:08:34 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.18 (cygwin32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OriginalArrivalTime: 31 Jul 2006 07:35:56.0546 (UTC) FILETIME=[F5D82620:01C6B473] X-Virus-Scanned: mosaic-ag.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.432 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200607/100 X-Sequence-Number: 15526 Mike Morris 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.