Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W3tRl-0000Po-3s for pgsql-jdbc@arkaria.postgresql.org; Thu, 16 Jan 2014 20:21:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W3tRk-0002R4-8f for pgsql-jdbc@arkaria.postgresql.org; Thu, 16 Jan 2014 20:21:48 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W3tRj-0002Qw-7y for pgsql-jdbc@postgresql.org; Thu, 16 Jan 2014 20:21:47 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W3tRZ-0006br-H9 for pgsql-jdbc@postgresql.org; Thu, 16 Jan 2014 20:21:46 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W3tRW-0001zh-DG for pgsql-jdbc@postgresql.org; Thu, 16 Jan 2014 21:21:34 +0100 Received: from ppp-88-217-11-167.dynamic.mnet-online.de ([88.217.11.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jan 2014 21:21:34 +0100 Received: from spam_eater by ppp-88-217-11-167.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jan 2014 21:21:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Performance improvement proposal. Removal of toLowerCase calls. Date: Thu, 16 Jan 2014 21:21:30 +0100 Lines: 52 Message-ID: References: <52D7FE5E.3050503@redhat.com> <52D83125.2020908@ttc-cmc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-88-217-11-167.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Dave Cramer wrote on 16.01.2014 20:51: > > Are you sure ? This is in the resultset, so any column names should have come back from the db. > Which means that they should come back in lower case anyway. > > create table foo > ( > "ID" integer, > "Bar" varchar > ); > > select * > from foo; > > Should return ID and Bar as the column names. > > > Exactly! While I haven't actually tested the code. The lines that Jeremy is referring to would seem to suggest that >the return columns would be id and bar. > > Does anyone have time to test this ? The current driver returns this correctly for a ResultSet. Here is a "transcript" from running my application on the console (easier to copy & paste than a screenshot) SQL Workbench/J console interface started. Enter 'exit' to quit. Enter 'WbHelp' for a list of SQL Workbench/J specific commands Config directory: C:\Projects\sqlworkbench\conf SQL> wbconnect {Postgres}/WbTest; Connection to "User=thomas, Schema=public, URL=jdbc:postgresql://localhost/wbtest" successful thomas@wbtest/public> create table foo ("ID" integer, "Bar" varchar, "FoBaR" varchar); Table 'foo' created thomas@wbtest/public> insert into foo values (1, 'foo', 'bar'); INSERT executed successfully 1 row affected thomas@wbtest/public> select * from foo; ID | Bar | FoBaR ---+-----+------ 1 | foo | bar (1 Row) SELECT executed successfully thomas@wbtest/public> All the various API calls in DatabaseMetaData do return identifiers in the correct case as well. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc