Commit ce0e904
Unit test for getter functions of CachedResultSet and added Timestamp support to CachedResultSet
fix: Add Timestamp support to CachedResultSet getTime() and getDate()
- Implement missing instanceof Timestamp cases in convertToTime() and convertToDate()
- Use new Time(timestamp.getTime()) and new Date(timestamp.getTime()) for standard JDBC behavior
- Add comprehensive test coverage for Timestamp conversion scenarios
- Fix object equality issues in tests by using consistent constructors
Resolves missing Timestamp handling that previously fell through to string parsing.
added more tests and cleaned up debug logs
removed uncessary imports, fixed testing logic for getTime() and getDate() and fixed implementation error for getBytes() and getBoolean() in the original codebase
updated future timestamp testing to make it more robust intead of hardcoding the future timestamp
updated convertToTime() to use static timezone offset -- functionality unchanged1 parent b600ba2 commit ce0e904
File tree
2 files changed
+382
-6
lines changed- wrapper/src
- main/java/software/amazon/jdbc/plugin/cache
- test/java/software/amazon/jdbc/plugin/cache
2 files changed
+382
-6
lines changedLines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
181 | | - | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
254 | | - | |
| 256 | + | |
| 257 | + | |
255 | 258 | | |
256 | 259 | | |
257 | 260 | | |
| |||
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
271 | 282 | | |
272 | 283 | | |
273 | 284 | | |
| |||
302 | 313 | | |
303 | 314 | | |
304 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
305 | 324 | | |
306 | 325 | | |
307 | 326 | | |
| |||
0 commit comments