Fixing test failure on 7.4 - Mailing list pgsql-jdbc

From Kim Ho
Subject Fixing test failure on 7.4
Date
Msg-id 1059743362.4172.1.camel@yay-lap
Whole thread Raw
List pgsql-jdbc
After moving from 7.3.3 to 7.4

    [junit] ...........F..............................
    [junit] .........................................
    [junit] .............................
    [junit] Time: 20.137
    [junit] There was 1 failure:
    [junit] 1)
testTransactionIsolation(org.postgresql.test.jdbc2.ConnectionTest)junit.framework.AssertionFailedError: expected:<8>
butwas:<2> 
    [junit]     at
org.postgresql.test.jdbc2.ConnectionTest.testTransactionIsolation(ConnectionTest.java:271)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
    [junit]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    [junit] FAILURES!!!
    [junit] Tests run: 111,  Failures: 1,  Errors: 0

It's because PG sends back "serializable" instead of "SERIALIZABLE" now.

Attached fix.

Cheers,

Kim

Attachment

pgsql-jdbc by date:

Previous
From: Paul Thomas
Date:
Subject: Re: postgresql jdbc driver for Java2 (IBM)
Next
From: Fernando Nasser
Date:
Subject: Re: new user rpm content question.