[Idrs-commit] CVS: Idrs/dev/src/net/sourceforge/idrs/utils DB.java,1.6,1.7
Brought to you by:
bigman921
|
From: Marc B. <big...@us...> - 2002-04-05 15:29:57
|
Update of /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/utils
In directory usw-pr-cvs1:/tmp/cvs-serv14497/dev/src/net/sourceforge/idrs/utils
Modified Files:
DB.java
Log Message:
bug fixes, documentation
Index: DB.java
===================================================================
RCS file: /cvsroot/idrs/Idrs/dev/src/net/sourceforge/idrs/utils/DB.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** DB.java 23 Mar 2002 04:48:28 -0000 1.6
--- DB.java 5 Apr 2002 14:37:52 -0000 1.7
***************
*** 403,406 ****
--- 403,410 ----
public void ProcSQL(String SQL, boolean isProc, String[] vars) throws Exception {
int i;
+ System.out.println("SQL : " + SQL);
+ System.out.println("isProc : " + isProc);
+ System.out.println("Vars : " + vars);
+ System.out.println("Direction : " + (this.direction == DB.OUTPUT));
if (isProc) {
SQL = "{call " + SQL + "}";
***************
*** 706,710 ****
--- 710,716 ----
*/
public boolean next() throws Exception {
+ System.out.println("Cursor client : ");
if (this.cursur == DB.CLIENT) {
+ System.out.println("Cursor client : ");
if (rows.size() > cursurLocation) {
fields = (HashMap) rows.get(this.cursurLocation);
***************
*** 722,725 ****
--- 728,732 ----
if (rs.next()) {
+ System.out.println("We have another one");
hasNext = true;
readFields();
***************
*** 727,730 ****
--- 734,738 ----
}
else {
+ System.out.println("No more");
hasNext = false;
return false;
***************
*** 772,776 ****
public void buildDB(String[] vars,IDRSScript idrs) throws Exception{
! if (this.cursur == DB.CLIENT && ! this.wasCached) {
if (type == METHOD) {
--- 780,787 ----
public void buildDB(String[] vars,IDRSScript idrs) throws Exception{
! System.out.println("In buildDB");
! System.out.println("cursor : " + (this.cursur == DB.CLIENT));
! System.out.println("wasCached : " + this.wasCached);
! if (this.cursur != DB.CLIENT && ! this.wasCached) {
if (type == METHOD) {
|