pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: smitha <smitha_alice_c@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Reg : Exception ( Postgresql with Java -JDBC)
Date: Thu, 24 Nov 2005 00:31:54 +1300
Message-ID: <4384532A.8090208@opencloud.com> (raw)
In-Reply-To: <20051123082744.40705.qmail@web60224.mail.yahoo.com>
References: <20051123082744.40705.qmail@web60224.mail.yahoo.com>
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
view thread (2+ messages)
Message-ID: <4384532A.8090208@opencloud.com> Permalink: ../4384532A.8090208@opencloud.com/ Also on: postgresql.org/message-id/4384532A.8090208@opencloud.com ·
reply
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: oliver@opencloud.com, smitha_alice_c@yahoo.com Subject: Re: Reg : Exception ( Postgresql with Java -JDBC) In-Reply-To: <4384532A.8090208@opencloud.com> References: <20051123082744.40705.qmail@web60224.mail.yahoo.com> <4384532A.8090208@opencloud.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