Received: from exchcon1etix.encryptix.com ([216.172.101.7]) by hub.org (8.10.1/8.11.0) with ESMTP id e9HIFrW42024 for ; Tue, 17 Oct 2000 14:15:53 -0400 (EDT) (envelope-from Dnesbitt@encryptix.com) Received: by exchcon1etix.encryptix.com with Internet Mail Service (5.5.2650.21) id ; Tue, 17 Oct 2000 11:14:50 -0700 Message-ID: <19016070071ED411B61300508BAC4B75041ACF@exch1etix.encryptix.com> From: Dnesbitt@encryptix.com To: pgsql-interfaces@postgresql.org Cc: Dnesbitt@encryptix.com, tlam@encryptix.com Subject: JDBC support for DROP USER? Date: Tue, 17 Oct 2000 11:15:02 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200010/159 X-Sequence-Number: 1516 Good People, We are getting an exception when trying to drop a user with a JDBC PreparedStatement. Is this supported? Here is the response we are seeing: java TestPrepare error : ERROR: parser: parse error at or near "'" Thanks in advance for any insight. The sample source code follows. Best Regards, //Dave import java.sql.*; public class TestPrepare { public static void main(String[] args) { try { Class.forName("org.postgresql.Driver"); } catch (Exception e) { System.out.println("load driver fails"); return; } try { Connection con = DriverManager.getConnection("jdbc:postgresql:///", "", ""); String dropUserSQL = "drop user ?"; PreparedStatement dropUserPs = con.prepareStatement(dropUserSQL); String userName = "tester"; dropUserPs.setString(1, userName); dropUserPs.executeUpdate(); } catch (SQLException e) { System.out.println("error : " + e.getMessage()); return; } } }