Project

General

Profile

« Previous | Next » 

Revision 1756

Added by Jing Tao over 21 years ago

Revise initial value for server registry.

View differences:

src/edu/ucsb/nceas/metacat/MetacatReplication.java
290 290
      if ( subaction.equals("add") ) {
291 291
        replicate = ((String[])params.get("replicate"))[0];
292 292
        server = ((String[])params.get("server"))[0];
293
        
293 294
        //Get data replication value
294 295
        dataReplicate = ((String[])params.get("datareplicate"))[0];
295 296
        //Get hub value
......
304 305
        pstmt = dbConn.prepareStatement("INSERT INTO xml_replication " +
305 306
                  "(server, last_checked, replicate, datareplicate, hub) " +
306 307
                                      "VALUES ('" + server + "', "+ 
307
                                      dbAdapter.toDate("01/01/00", "MM/DD/YY") 
308
                                      dbAdapter.toDate("01/01/80", "MM/DD/YY") 
308 309
                                      + ", '" +
309 310
                                      replicate +"', '" +dataReplicate+"', '"
310 311
                                      + hub +"')");
311
        MetaCatUtil.debugMessage("5, new sql for todate:================== ", 1);
312
                              
312
                                  
313 313
        pstmt.execute();
314 314
        pstmt.close();
315 315
        dbConn.commit();

Also available in: Unified diff