X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 69FE1529BD for ; Wed, 29 Jun 2005 09:37:14 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48728-02 for ; Wed, 29 Jun 2005 12:37:09 +0000 (GMT) Received: from genomemail.chop.edu (genomemail.chop.edu [159.14.214.193]) by svr1.postgresql.org (Postfix) with ESMTP id 60A2252992 for ; Wed, 29 Jun 2005 09:37:06 -0300 (ADT) Received: from [159.14.214.141] ([159.14.214.141]) BY genomemail.chop.edu ([159.14.214.193]) WITH ESMTP (4D WebSTAR V Mail (5.3.4)); Wed, 29 Jun 2005 08:37:10 -0400 Message-ID: <42C295F5.7080902@genome.chop.edu> Date: Wed, 29 Jun 2005 08:37:09 -0400 From: Kevin Murphy User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Wish list References: <42C19D1D.30809@genome.chop.edu> <200506281455.09688.cservin@cromagnon.com> In-Reply-To: <200506281455.09688.cservin@cromagnon.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.028 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/155 X-Sequence-Number: 13117 In the context of my current project of writing code that can 1) access a database directly, 2) write sql statements to a file instead of executing them, and also, 3) write raw data for insert to flat files: it would be nice if the JDBC driver could somehow expose the functionality to do the quoting and escaping required in steps 2 and 3 without ever requiring a database connection. I know it's not the driver's main line of business, but since it is able to do these things anyway (in PreparedStatement.toString), and they are useful but non-trivial to do properly, why not expose the functionality? I know very little about java and JDBC, so maybe this doesn't make sense. BTW, thanks to Craig Servin and Mark Lewis for turning me on to java.lang.reflect.Proxy. Kevin Murphy