Received: from matavnet.hu (mail.matavnet.hu [195.228.240.10]) by hub.org (8.9.3/8.9.3) with SMTP id TAA07019 for ; Sat, 27 May 2000 19:32:56 -0400 (EDT) (envelope-from gjano@freemail.hu) Received: (qmail 27289 invoked from network); 28 May 2000 01:32:54 +0200 Received: from unknown (HELO azul) (gjano@195.228.52.190) by mail.matavnet.hu with SMTP; 28 May 2000 01:32:54 +0200 From: Janossy Gergely To: pgsql-interfaces@postgresql.org Subject: jdbc driver: Why it isn't jdbcCompliant? Date: Sat, 27 May 2000 01:26:31 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00052701341103.02227@azul> Content-Transfer-Encoding: 8bit X-Archive-Number: 200005/75 Hi! I'm using Sun JDK 1.2.2 and tried to use the pgsql interface with postgresql 6.x and 7.0 as well. I couldn't use any of the interfaces because the method Driver.jdbcCompliant() is always false. Even with mysql driver. I used a little test program: if (evt.getSource()==registerButton) { try { Driver d=(Driver)Class.forName(driver.getText()).newInstance(); kiir("Registered driver: "+driver.getText()); kiir("Verzio: "+d.getMajorVersion()+"."+d.getMinorVersion()); String s; if (!d.jdbcCompliant()) s=" not "; else s=" "; kiir("This driver is "+s+"JDBC-compliant"); } catch (Exception e) { hiba("Registration failed", e); } where driver.Gettext is the path of the postgres driver (org.postgres.Driver i think.) Thanx for your help Greg.