forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd42f9b5
committed
Here is a patch for interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
It addresses three issues:1. The problem with ResultSet's interface specifying 1-based indexing wasnot quite fixed in 7.0.2. absolute would stop the user form moving to thefirst record (record 0 internally).2. Absolute did not set current_row3. For field.mod=-1, GetObject would try to return numeric values with aprecision of around 65000. Now GetObject detects when field.mod==-1, andpasses that as the scale to getBigDecimal. getBigDecimal detects when a-1 is passed and simply does not scale the value returned. You still getthe correct value back, it simply does not tweak the precision.I'm working off of a source tree I just checked out from therepository. The diff is based on what was in the repository about tenminutes ago.----------------------------------------------------------------Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer----------------------------------------------------------------1 parent00156fa commitd42f9b5
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
347 | 347 |
| |
348 | 348 |
| |
349 | 349 |
| |
| 350 | + | |
350 | 351 |
| |
351 | 352 |
| |
352 | 353 |
| |
| |||
739 | 740 |
| |
740 | 741 |
| |
741 | 742 |
| |
742 |
| - | |
| 743 | + | |
| 744 | + | |
743 | 745 |
| |
744 | 746 |
| |
745 | 747 |
| |
| |||
804 | 806 |
| |
805 | 807 |
| |
806 | 808 |
| |
807 |
| - | |
| 809 | + | |
808 | 810 |
| |
809 | 811 |
| |
| 812 | + | |
810 | 813 |
| |
811 | 814 |
| |
812 | 815 |
| |
|
0 commit comments
Comments
(0)