mirror of
https://github.com/apache/openjpa.git
synced 2025-03-06 16:39:11 +00:00
OPENJPA-2387: Fix to exclude schema name when checking the length of a sequence name.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1504721 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4cf336fd95
commit
e384913eae
@ -3483,8 +3483,10 @@ public class DBDictionary
|
||||
|
||||
StringBuilder buf = new StringBuilder();
|
||||
buf.append(create ? "CREATE" : "ALTER").append(" SEQUENCE ");
|
||||
String seqName = checkNameLength(getFullName(seq), maxTableNameLength,
|
||||
"long-seq-name");
|
||||
|
||||
String seqName = checkNameLength(toDBName(seq.getFullIdentifier().getUnqualifiedName()),
|
||||
maxTableNameLength, "long-seq-name");
|
||||
|
||||
buf.append(seqName);
|
||||
if (create && seq.getInitialValue() != 0)
|
||||
buf.append(" START WITH ").append(seq.getInitialValue());
|
||||
|
Loading…
x
Reference in New Issue
Block a user