db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/generator/src/java/org/apache/torque/task TorqueDataDumpTask.java
Date Fri, 05 Dec 2003 15:39:18 GMT
mpoeschl    2003/12/05 07:39:17

  Modified:    src/generator/src/java/org/apache/torque/task
                        TorqueDataDumpTask.java
  Log:
  force the ResultSet to be scrollable (fixes datadump on oracle)
  
  Revision  Changes    Path
  1.6       +5 -5      db-torque/src/generator/src/java/org/apache/torque/task/TorqueDataDumpTask.java
  
  Index: TorqueDataDumpTask.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/task/TorqueDataDumpTask.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TorqueDataDumpTask.java	28 Oct 2003 15:16:51 -0000	1.5
  +++ TorqueDataDumpTask.java	5 Dec 2003 15:39:17 -0000	1.6
  @@ -225,6 +225,8 @@
   
               conn = DriverManager.getConnection(
                       databaseUrl, databaseUser, databasePassword);
  +            stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
  +                    ResultSet.CONCUR_UPDATABLE);
   
               log("DB connection established", Project.MSG_DEBUG);
               context.put("tableTool", new TableTool());
  @@ -303,10 +305,8 @@
           public TableTool fetch(String tableName) throws Exception
           {
               log("Fetching data for table " + tableName, Project.MSG_INFO);
  -            // Set Statement object in associated TorqueDataDump
  -            // instance
  -            return new TableTool(conn.createStatement()
  -                    .executeQuery("SELECT * FROM " + tableName));
  +            return new TableTool(
  +                    stmt.executeQuery("SELECT * FROM " + tableName));
           }
   
           /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message