Revision c60cae60
Added by Andreas Müller about 5 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/v25_30/SequenceTableCreator.java | ||
---|---|---|
15 | 15 |
|
16 | 16 |
import org.apache.log4j.Logger; |
17 | 17 |
|
18 |
import com.mysql.jdbc.exceptions.MySQLSyntaxErrorException; |
|
19 |
|
|
20 | 18 |
import eu.etaxonomy.cdm.common.monitor.IProgressMonitor; |
21 | 19 |
import eu.etaxonomy.cdm.database.DatabaseTypeEnum; |
22 | 20 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
... | ... | |
137 | 135 |
try{ |
138 | 136 |
String query = maxIdQuery.replace("@tableName", tableName); |
139 | 137 |
maxId = datasource.getSingleValue(query); |
140 |
}catch(MySQLSyntaxErrorException e){
|
|
138 |
}catch(SQLException e){
|
|
141 | 139 |
// table does not have a column id, so it is not an entity table |
142 | 140 |
maxId = null; |
143 | 141 |
} |
Also available in: Unified diff
ref #8118 fix compile error in SequenceTableCreator