Update of /cvsroot/jython/jython/com/ziclix/python/sql
In directory usw-pr-cvs1:/tmp/cvs-serv17471/com/ziclix/python/sql
Modified Files:
Fetch.java
Log Message:
added accessor for description
Index: Fetch.java
===================================================================
RCS file: /cvsroot/jython/jython/com/ziclix/python/sql/Fetch.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Fetch.java 10 May 2002 16:08:44 -0000 1.11
--- Fetch.java 16 May 2002 01:41:32 -0000 1.12
***************
*** 52,56 ****
/** Field cursor */
! protected DataHandler datahandler;
/** Field description */
--- 52,56 ----
/** Field cursor */
! private DataHandler datahandler;
/** Field description */
***************
*** 58,62 ****
/** A list of warning listeners. */
! protected List listeners;
/**
--- 58,62 ----
/** A list of warning listeners. */
! private List listeners;
/**
***************
*** 101,104 ****
--- 101,112 ----
/**
+ * The description of each column, in order, for the data in the result
+ * set.
+ */
+ public PyObject getDescription() {
+ return this.description;
+ }
+
+ /**
* Create the results after a successful execution and manages the result set.
*
***************
*** 622,626 ****
if (this.rownumber < this.rowcount) {
! res = current.__getslice__(Py.newInteger(this.rownumber), Py.newInteger(this.rownumber + size), Py.newInteger(1));
this.rownumber += size;
}
--- 630,634 ----
if (this.rownumber < this.rowcount) {
! res = current.__getslice__(Py.newInteger(this.rownumber), Py.newInteger(this.rownumber + size), Py.One);
this.rownumber += size;
}
|