forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4d84b7a
committed
I just got bitten by this too. I use type timestamp in the
database, and often need the latest timestamp, but want toformat it as a date. With 7.0.x, I just select ts from foo order by ts desc limit 1and in java: d = res.getDate(1);but this fails everywhere in my code now :(http://java.sun.com/j2se/1.3/docs/guide/jdbc/spec/jdbc-spec.frame7.htmlsays The ResultSet.getXXX methods will attempt to convert whatever SQL type was returned by the database to whatever Java type is returned by the getXXX method.Palle Girgensohn1 parent5b42666 commit4d84b7a
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
427 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
428 | 433 | | |
429 | 434 | | |
430 | 435 | | |
| |||
441 | 446 | | |
442 | 447 | | |
443 | 448 | | |
444 | | - | |
445 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
446 | 456 | | |
447 | 457 | | |
448 | 458 | | |
| |||
0 commit comments
Comments
(0)