JDBC arrays

Started by Alexey Slynkoover 24 years ago3 messagespatches
Jump to latest
#1Alexey Slynko
slynko@stack.net

This patch solve problems with arrays in latest development JDBC driver

*** src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java.orig	Tue Mar 12 14:49:59 2002
--- src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java	Tue Mar 12 14:50:22 2002
***************
*** 767,772 ****
--- 767,774 ----
  			case Types.BINARY:
  			case Types.VARBINARY:
  				return getBytes(columnIndex);
+ 			case Types.ARRAY:
+ 				return getArray(columnIndex);
  			default:
  				String type = field.getPGType();
  				// if the backend doesn't know the type then coerce to String
#2Bruce Momjian
bruce@momjian.us
In reply to: Alexey Slynko (#1)
Re: JDBC arrays

Your patch has been added to the PostgreSQL unapplied patches list at:

http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------

Alexey Slynko wrote:

This patch solve problems with arrays in latest development JDBC driver

*** src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java.orig	Tue Mar 12 14:49:59 2002
--- src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java	Tue Mar 12 14:50:22 2002
***************
*** 767,772 ****
--- 767,774 ----
case Types.BINARY:
case Types.VARBINARY:
return getBytes(columnIndex);
+ 			case Types.ARRAY:
+ 				return getArray(columnIndex);
default:
String type = field.getPGType();
// if the backend doesn't know the type then coerce to String

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

-- 
  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
#3Bruce Momjian
bruce@momjian.us
In reply to: Alexey Slynko (#1)
Re: JDBC arrays

Patch applied. Thanks.

---------------------------------------------------------------------------

Alexey Slynko wrote:

This patch solve problems with arrays in latest development JDBC driver

*** src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java.orig	Tue Mar 12 14:49:59 2002
--- src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java	Tue Mar 12 14:50:22 2002
***************
*** 767,772 ****
--- 767,774 ----
case Types.BINARY:
case Types.VARBINARY:
return getBytes(columnIndex);
+ 			case Types.ARRAY:
+ 				return getArray(columnIndex);
default:
String type = field.getPGType();
// if the backend doesn't know the type then coerce to String

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

-- 
  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