Commit f72fe1a
committed
Handle multiple result sets (implicit cursor) with Oracle driver
Oracle driver...
... throws `SQLException` with no good reason when calling `Statement#getResultSet()`.
`SQLException` is thrown "if a database access error occurs or this method is called on a closed Statement".
https://docs.oracle.com/en/java/javase/23/docs/api/java.sql/java/sql/Statement.html#getResultSet()
https://stackoverflow.com/q/42091653/1261766
... always returns `false` from `DatabaseMetaData#supportsMultipleResultSets()` even though it apparently does.1 parent 6d18873 commit f72fe1a
File tree
2 files changed
+36
-24
lines changed- src
- main/java/org/apache/ibatis/executor/resultset
- test/java/org/apache/ibatis/executor/resultset
2 files changed
+36
-24
lines changedLines changed: 35 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
259 | 270 | | |
| 271 | + | |
| 272 | + | |
260 | 273 | | |
| 274 | + | |
261 | 275 | | |
262 | 276 | | |
263 | 277 | | |
264 | 278 | | |
265 | 279 | | |
266 | 280 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
278 | 293 | | |
279 | 294 | | |
280 | 295 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 95 | | |
99 | 96 | | |
100 | 97 | | |
| |||
0 commit comments