* Always use select max id generator for MySQL databases since they
don't support sequences.
This commit is contained in:
parent
118c9d9f2b
commit
332f98cbd0
1 changed files with 2 additions and 2 deletions
|
@ -748,13 +748,13 @@ public final class NodeManager {
|
|||
return generateEmbeddedID(map);
|
||||
}
|
||||
String idMethod = map.getIDgen();
|
||||
if (idMethod == null || "[max]".equalsIgnoreCase(idMethod)) {
|
||||
if (idMethod == null || "[max]".equalsIgnoreCase(idMethod) || map.isMySQL()) {
|
||||
// use select max as id generator
|
||||
return generateMaxID(map);
|
||||
} else if ("[hop]".equalsIgnoreCase(idMethod)) {
|
||||
// use embedded db id generator
|
||||
return generateEmbeddedID(map);
|
||||
} else {
|
||||
} else {
|
||||
// use db sequence as id generator
|
||||
return generateSequenceID(map);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue