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 A99583A46F0 for ; Thu, 18 Nov 2004 18:13:54 +0000 (GMT) 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 83116-08 for ; Thu, 18 Nov 2004 18:13:41 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr1.postgresql.org (Postfix) with ESMTP id 995513A476A for ; Thu, 18 Nov 2004 18:13:40 +0000 (GMT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iAIIDbri028659 for ; Thu, 18 Nov 2004 13:13:37 -0500 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iAIIDRr02031 for ; Thu, 18 Nov 2004 13:13:27 -0500 Received: from 192.168.1.2 (vpn83-124.boston.redhat.com [172.16.83.124]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id iAIIDPht006867 for ; Thu, 18 Nov 2004 13:13:25 -0500 From: Vadim Nasardinov Organization: Red Hat / Westford To: pgsql-jdbc@postgresql.org Subject: 1+1+16 = 18 failures (was: Re: JDBC CTS 1.2.1) Date: Thu, 18 Nov 2004 13:20:32 -0500 User-Agent: KMail/1.5.4 References: <200410221627.20176@vadim.nasardinov> <200411171506.13490@vadim.nasardinov> <419BB3BE.8090706@opencloud.com> In-Reply-To: <419BB3BE.8090706@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411181320.32829@vadim.nasardinov> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/136 X-Sequence-Number: 11558 On Wednesday 17 November 2004 15:25, Oliver Jowett wrote: > Did you get any useful test results from the non-EJB modes? Anything > the driver does wrong there? No, I didn't see any cases where the blame could be pegged squarely on the driver, except the testSupportsStoredProcedures test. If I run the test with this exclusion list: http://java.sun.com/products/jdbc/exclude.1.2.1.txt?button=Download I get 18 failures out of 548 tests. One of them is testSupportsStoredProcedures This fails because in org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java, we have public boolean supportsStoredProcedures() throws SQLException { return false; } whereas the test harness expects this method to return true. One other failure looks like a bug in the harness. Specifically, testGetSQLState fails because this condition b.getSQLState() instanceof java.lang.String tests false, where b is a SQLException. Now, the only way this can possibly happen is if getSQLState() returns null. Looking at the javadoc http://java.sun.com/j2se/1.4.2/docs/api/java/sql/SQLException.html#getSQLState%28%29 I don't see anything that says the method is not allowed to return null. Looks like a bug in the CTS. The remaining 16 failures are all due to the same reason. The backend chokes on the following query (or some variation thereof): | DB1=> select substring(version(), 1, 20) as version; | version | ---------------------- | PostgreSQL 7.3.4-RH | (1 row) | DB1=> create table Real_Tab (MAX_VAL REAL, MIN_VAL REAL,NULL_VAL REAL); | CREATE TABLE | DB1=> insert into Real_Tab values(3.4E38,1.4E-45, null); | ERROR: Bad float4 input format -- underflow The funny part is that I can do | DB1=> select 1.4E-45; | ?column? | -------------------------------------------------- | 0.0000000000000000000000000000000000000000000014 | (1 row) | DB1=> select 3.4E38; | ?column? | ----------------------------------------- | 340000000000000000000000000000000000000 | (1 row) But I would have to test this against a more recent version of the backend. In any case, these 16 failures don't be seem to be caused by the driver. Vadim