Project

General

Profile

« Previous | Next » 

Revision 1133

Added by Jing Tao about 22 years ago

Change back to pass connection as paramter in getUniqueID, otherwise new connection will cause a error:
sequence XML_NODES_ID_SEQ.CURRVAL is not yet defined in this session

View differences:

src/edu/ucsb/nceas/dbadapter/AbstractDatabase.java
56 56
   *            during the db operation
57 57
   * @return return the generated unique id as a long type
58 58
   */
59
  public abstract long getUniqueID(String tableName) 
59
  public abstract long getUniqueID(Connection conn, String tableName) 
60 60
                                                  throws SQLException;
61 61

  
62 62
  /**

Also available in: Unified diff