OPENJPA-505. Committing on behalf of joe@bea.com (Joe Weinstein).

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@616658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2008-01-30 06:49:26 +00:00
parent b2a10e285f
commit 0b4ce34920
1 changed files with 7 additions and 2 deletions

View File

@ -1660,8 +1660,13 @@ public class DBDictionary
*/
protected String insertSize(String typeName, String size) {
if(StringUtils.isEmpty(size)) {
return typeName;
}
int idx = typeName.indexOf("{0}");
if (idx != -1) {
return typeName.substring(0,idx);
}
return typeName;
}
int idx = typeName.indexOf("{0}");
if (idx != -1) {