Project

General

Profile

« Previous | Next » 

Revision 753

Added by harris about 23 years ago

changed the getDate method to getDateTime and changed the return
string in the postgresql implementation to "now()" from now()::date

View differences:

DBAdapter.java
64 64
   *
65 65
   * @return return the current date and time function name
66 66
   */
67
  public abstract String getDateFunction();
67
  public abstract String getDateTimeFunction();
68 68

  
69 69
  /**
70 70
   * The character that the specific database implementation uses to 
......
109 109
      DBAdapter dbAdapterObj = (DBAdapter)createObject(dbAdapter);
110 110
      
111 111
      // test if they work correctly
112
      String date = dbAdapterObj.getDateFunction();
112
      String date = dbAdapterObj.getDateTimeFunction();
113 113

  
114 114
      Connection conn = util.openDBConnection();
115 115
      long uniqueid = dbAdapterObj.getUniqueID(conn, "xml_catalog");
......
122 122
  }
123 123
  
124 124
}
125
    
125
    

Also available in: Unified diff