forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4f63a0e
committed
Attached is a patch that fixes ResultSetMetaData.isNullable() in
the JDBC driver.This method is currently unimplemented and always returnsResultSetMetaData.columnNullable. This is obviously incorrectwhen a column is defined with NOT NULL or PRIMARY KEY. And wehave to think of check constraints, views, functions etc.The patch simply changes the return value toResultSetMetaData.columnNullableUnknown. This is until someonecomes up with a real implementation of course.On Fri, 14 Sep 2001 17:53:50 +0200, Tomisaw Kity?ski wrote:>Hello there,>>could someone tell me, please, do I have any chance to get>proper implementation of above method in JDBC (1.1+) soon?>>Current "return 1" works fine on most tables, however it seems>to be a little bit incorrect with some of them ;)Ren? Pijlman1 parent6e63468 commit4f63a0e
File tree
2 files changed
+15
-9
lines changed- src/interfaces/jdbc/org/postgresql
- jdbc1
- jdbc2
2 files changed
+15
-9
lines changedLines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
140 |
| - | |
141 |
| - | |
| 139 | + | |
142 | 140 |
| |
143 | 141 |
| |
144 | 142 |
| |
145 | 143 |
| |
146 | 144 |
| |
147 | 145 |
| |
148 | 146 |
| |
149 |
| - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
150 | 153 |
| |
151 |
| - | |
| 154 | + | |
152 | 155 |
| |
153 | 156 |
| |
154 | 157 |
| |
|
Lines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
134 |
| - | |
135 |
| - | |
136 |
| - | |
| 134 | + | |
137 | 135 |
| |
138 | 136 |
| |
139 | 137 |
| |
140 | 138 |
| |
141 | 139 |
| |
142 | 140 |
| |
143 | 141 |
| |
144 |
| - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
145 | 148 |
| |
146 | 149 |
| |
147 | 150 |
| |
|
0 commit comments
Comments
(0)