Re: Fw: Druid problems - Mailing list pgsql-jdbc

From Bruce Momjian
Subject Re: Fw: Druid problems
Date
Msg-id 200105301304.f4UD4CI26149@candle.pha.pa.us
Whole thread Raw
Responses getDate() and getTime() fails with columns of type 'TimeStamp'
Re: Fw: Druid problems
List pgsql-jdbc
I have applied the following patch that fixes Druid to work with our
jdbc driver.  Applied to jdbc1 and jdbc2.

> This get's us past the first problem. I have emailed the author for any
> other problems.
>
> I also found on the sun site a test suite for 1.2 driver, and the j2see
> driver. This will go a long ways to getting the driver solid.
> Now the challenge will be getting the j2see stuff to work ;)
>
> Dave

[ Attachment, skipping... ]

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
Index: DatabaseMetaData.java
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java,v
retrieving revision 1.22
diff -c -r1.22 DatabaseMetaData.java
*** DatabaseMetaData.java    2001/05/17 11:54:04    1.22
--- DatabaseMetaData.java    2001/05/30 04:50:32
***************
*** 1489,1495 ****
      f[0] = new Field(connection, "PROCEDURE_CAT",   iVarcharOid, 32);
      f[1] = new Field(connection, "PROCEDURE_SCHEM", iVarcharOid, 32);
      f[2] = new Field(connection, "PROCEDURE_NAME",  iVarcharOid, 32);
!     f[3] = f[4] = f[5] = null;    // reserved, must be null for now
      f[6] = new Field(connection, "REMARKS",       iVarcharOid, 8192);
      f[7] = new Field(connection, "PROCEDURE_TYPE", iInt2Oid,    2);

--- 1489,1495 ----
      f[0] = new Field(connection, "PROCEDURE_CAT",   iVarcharOid, 32);
      f[1] = new Field(connection, "PROCEDURE_SCHEM", iVarcharOid, 32);
      f[2] = new Field(connection, "PROCEDURE_NAME",  iVarcharOid, 32);
!     f[3] = f[4] = f[5] = new Field(connection,"reserved",iVarcharOid,32);    // null;    // reserved, must be null
fornow 
      f[6] = new Field(connection, "REMARKS",       iVarcharOid, 8192);
      f[7] = new Field(connection, "PROCEDURE_TYPE", iInt2Oid,    2);


pgsql-jdbc by date:

Previous
From: Laurentiu Drob
Date:
Subject: Re: JDBC 7.1.2 compilation failed
Next
From: Michael Stephenson
Date:
Subject: getDate() and getTime() fails with columns of type 'TimeStamp'