- Notifications
You must be signed in to change notification settings - Fork5
Commita21c096
committed
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 totry to format the text file, so gzipping it should solve thisproblem.]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 Zoller1 parent1ebbfc1 commita21c096
File tree
3 files changed
+219
-191
lines changed- src/interfaces/jdbc/org/postgresql
- jdbc2
3 files changed
+219
-191
lines changedLines changed: 35 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
| 26 | + | |
25 | 27 |
| |
26 | 28 |
| |
27 | 29 |
| |
| |||
104 | 106 |
| |
105 | 107 |
| |
106 | 108 |
| |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
107 | 136 |
| |
108 | 137 |
| |
109 | 138 |
| |
| |||
126 | 155 |
| |
127 | 156 |
| |
128 | 157 |
| |
129 |
| - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
130 | 161 |
| |
131 | 162 |
| |
132 | 163 |
| |
| |||
149 | 180 |
| |
150 | 181 |
| |
151 | 182 |
| |
152 |
| - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
153 | 186 |
| |
154 | 187 |
| |
155 | 188 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
|
0 commit comments
Comments
(0)