postgresql/src
Bruce Momjian a21c096058 Thanks for your feedback (and patience). Enclosed is my third
attempt at a patch to 7.1.2 to support Array.

[I think I've solved the mangled patch problem.  Hotmail seems to
try to format the text file, so gzipping it should solve this
problem.]

In this patch I've incorporated Barry's feedback.  Specifically:

1)  OIDs are no longer hard-coded into Array.java.  In order to
    support this change I added a getOID(String) method to Field.java
    which receives a PostgreSQL field type and returns a value from
    java.sql.Types.  I couldn't get away from using OIDs altogether
    because the JDBC spec for Array specifies that some methods return
    a ResultSet.  This requires I construct Field objects,
    which means I need OIDs.  At least this approach doesn't hard
    code these values.  A Hashtable cache has been added to Field
    so that an SQL lookup isn't necessary (following the model already
    in Field.java).

2)  Rewired the base formatting code in ResultSet.java to use 'to'
    methods, which are then exposed as static methods in ResultSet.
    These methods are used in Array to format the data without
    duplications in the code.

3)  Artifact call to first() in ResultSet.getArray() removed.

Greg Zoller
2001-08-17 14:45:49 +00:00
..
backend Force crypt() salt to be null-terminated. 2001-08-17 03:09:31 +00:00
bin Sequences are now based on int8, not int4, arithmetic. SERIAL pseudo-type 2001-08-16 20:38:56 +00:00
corba Convert files from DOS format to normal text. 2000-12-03 14:43:59 +00:00
data I've sent 3 mails to pgsql-patches. There are two files, one for doc 1999-08-16 20:27:19 +00:00
include Add 4-byte MD5 salt. 2001-08-17 02:59:20 +00:00
interfaces Thanks for your feedback (and patience). Enclosed is my third 2001-08-17 14:45:49 +00:00
makefiles Shared libraries should not be linked explicitly against -lc on FreeBSD 2001-06-20 20:25:11 +00:00
pl Clean up various memory leaks within plpgsql, and re-enable the 2001-08-02 21:31:23 +00:00
template 0 -> O 2001-08-08 13:30:20 +00:00
test Sequences are now based on int8, not int4, arithmetic. SERIAL pseudo-type 2001-08-16 20:38:56 +00:00
tools Update list of files to update. 2001-08-16 21:53:27 +00:00
tutorial Fix Cygwin build, per Jason Tishler. 2001-08-09 13:52:06 +00:00
utils pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
DEVELOPERS just testing a script... 1999-07-30 03:45:57 +00:00
GNUmakefile.in Restructure the key include files per recent pghackers discussion: there 2001-02-10 02:31:31 +00:00
Makefile Restructure the key include files per recent pghackers discussion: there 2001-02-10 02:31:31 +00:00
Makefile.global.in Make sure the build tree is before the source tree in the include path. 2001-07-15 11:20:01 +00:00
Makefile.shlib Shared libraries should not be linked explicitly against -lc on FreeBSD 2001-06-20 20:25:11 +00:00
nls-global.mk Change xgettext rule to run in the source tree, so we don't have the 2001-07-15 11:43:55 +00:00
win32.mak Libpq++ fixes for Win32 compile. 2001-07-11 22:12:43 +00:00