X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 410B0DB8D9 for ; Wed, 23 Nov 2005 07:31:57 -0400 (AST) 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 65022-02 for ; Wed, 23 Nov 2005 11:31:57 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by svr1.postgresql.org (Postfix) with ESMTP id 81DFDDB6B0 for ; Wed, 23 Nov 2005 07:31:52 -0400 (AST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Eesqx-0002Tn-6A; Thu, 24 Nov 2005 00:31:55 +1300 Message-ID: <4384532A.8090208@opencloud.com> Date: Thu, 24 Nov 2005 00:31:54 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051009) X-Accept-Language: en-us, en MIME-Version: 1.0 To: smitha CC: pgsql-jdbc@postgresql.org Subject: Re: Reg : Exception ( Postgresql with Java -JDBC) References: <20051123082744.40705.qmail@web60224.mail.yahoo.com> In-Reply-To: <20051123082744.40705.qmail@web60224.mail.yahoo.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, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/167 X-Sequence-Number: 14265 smitha wrote: > &nb sp; String query1 = "CREATE user " + logName + " with password '" > + passwd + "' createuser"; > ResultSet rs= st.executeQuery(query1); CREATE USER does not return a resultset, so you should use executeUpdate() or execute(), not executeQuery(). See the JDBC javadoc. -O