Changeset 25337

Show
Ignore:
Timestamp:
03.04.2012 20:43:52 (8 years ago)
Author:
ak19
Message:

Corrected an error introduced during changes in recent commit: that of printing out only the last record in DB instead of all of them.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/DerbyWrapper.java

    r25308 r25337  
    497497            conn.commit(); 
    498498 
     499            StringBuffer buffer = new StringBuffer();//("-------------------------------------"); 
    499500            for (HashMap<String, String> user : infoMap) 
    500501            { 
     
    510511                } 
    511512                conn.commit(); 
    512                  
    513                 StringBuffer buffer = new StringBuffer();//("-------------------------------------"); 
     513                                 
    514514                buffer.append("USERNAME = " + user.get("username")); 
    515515                buffer.append("\nPASSWORD = " + user.get("password")); 
     
    518518                buffer.append("\nCOMMENT = " + user.get("comment")); 
    519519                buffer.append("\nEMAIL = " + user.get("email")); 
    520                 buffer.append("\n-------------------------------------\n"); 
    521                 db2txt = buffer.toString(); 
    522             } 
     520                buffer.append("\n-------------------------------------\n");              
     521            } 
     522            db2txt = buffer.toString(); 
    523523 
    524524            conn.commit();