Project

General

Profile

« Previous | Next » 

Revision 545

Added by berkley about 24 years ago

no message

View differences:

src/edu/ucsb/nceas/metacat/MetacatReplication.java
166 166
    java.util.Date update = new java.util.Date();
167 167
    ParsePosition pos = new ParsePosition(0);
168 168
    update = formatter.parse(updateStr, pos);
169
    //update = new java.util.Date(update.getTime() - 10000);
169 170
    String dateString = formatter.format(update);
170 171
    sql.append("select docid, date_updated from xml_documents where ");
171 172
    sql.append("date_updated > ");
src/edu/ucsb/nceas/metacat/ReplicationHandler.java
183 183
      StringBuffer sql = new StringBuffer();
184 184
      sql.append("update xml_replication set last_checked = to_date('");
185 185
      sql.append(dateString).append("', 'YY-MM-DD HH24:MI:SS')");
186
      System.out.println("sql: " + sql.toString());
186
      //System.out.println("sql: " + sql.toString());
187 187
      pstmt = conn.prepareStatement(sql.toString());
188 188
      pstmt.executeUpdate();
189 189
      //conn.commit();

Also available in: Unified diff