Changeset 1706

Show
Ignore:
Timestamp:
12/31/11 15:38:13 (5 months ago)
Author:
icare4
Message:

Ticket 198

Location:
trunk/src/org/rapla/storage/dbsql
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/org/rapla/storage/dbsql/DBOperator.java

    r1684 r1706  
    299299        try  
    300300        { 
    301             ResultSet oldResourceTable = connection.getMetaData().getTables(null, null,"RESOURCE" , null); 
     301            ResultSet oldResourceTable = connection.getMetaData().getTables(null, null,"resource" , null); 
    302302            while ( oldResourceTable.next()) 
    303303            { 
     
    305305            } 
    306306            // If there is also a new Table use the new Table 
    307             ResultSet newResourceTable = connection.getMetaData().getTables(null, null,"RAPLA_RESOURCE" , null); 
     307            ResultSet newResourceTable = connection.getMetaData().getTables(null, null,"rapla_resource" , null); 
    308308            while ( newResourceTable.next()) 
    309309            { 
     
    318318        if ( oldResourceTableName ) 
    319319        { 
    320             getLogger().warn("Using old resource table name RESOURCE. Please rename to RAPLA_RESOURCE"); 
     320            getLogger().warn("Using old resource table name: resource. Please rename to: rapla_resource"); 
    321321        } 
    322322        newResourceSchema = false; 
     
    325325            try  
    326326            { 
    327                 ResultSet lastChangedColumn = connection.getMetaData().getColumns(null, null,"RAPLA_RESOURCE" , "CREATION_TIME"); 
     327                ResultSet lastChangedColumn = connection.getMetaData().getColumns(null, null,"rapla_resource" , "creation_time"); 
    328328                while ( true) 
    329329                { 
  • trunk/src/org/rapla/storage/dbsql/RaplaSQL.java

    r1695 r1706  
    754754                            stmt.setTimestamp( 8, new java.sql.Timestamp( end.getTime() )); 
    755755                        } else { 
    756                                 stmt.setObject(8, null, Types.INTEGER); 
     756                                stmt.setObject(8, null, Types.TIMESTAMP); 
    757757                        } 
    758758                        stmt.executeUpdate();