forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd3ef753
committed
This patch fixes the 0-based/1-based result set indexing problem for
absolute. It also makes it more compliant with the interfacespecification in Sun's documentation;1. absolute(0) should throw an exception.2. absolute(>num-records) should set the current row to after the lastrecord in addition to returning false.3. absolute(<num-records) should set the current row to before the firstrecord in addition to returning false.These operations in the existing code just return false and don't changecurrent_row.These changes required a minor change to relative(int) since it callsabsolute(int)The attached patch is against the cvs repository tree as of this morning.Also, who is in charge of maintaining the jdbc driver? I'm working ongetArray for the jdbc2 driver, but it's going to require three moreclasses to be added to the driver, and thus three more source filesin the repository. Is there someone I can contact directly to ask aboutthis?Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer1 parentbd29cb0 commitd3ef753
1 file changed
+29
-10
lines changedLines changed: 29 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
801 | 801 |
| |
802 | 802 |
| |
803 | 803 |
| |
804 |
| - | |
805 |
| - | |
806 |
| - | |
807 |
| - | |
808 |
| - | |
809 |
| - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
810 | 827 |
| |
811 |
| - | |
812 |
| - | |
813 |
| - | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
814 | 832 |
| |
815 | 833 |
| |
816 | 834 |
| |
| |||
1041 | 1059 |
| |
1042 | 1060 |
| |
1043 | 1061 |
| |
1044 |
| - | |
| 1062 | + | |
| 1063 | + | |
1045 | 1064 |
| |
1046 | 1065 |
| |
1047 | 1066 |
| |
|
0 commit comments
Comments
(0)