提交 34343db3 编写于 作者: J jurgen

Generic cache read fix

上级 86f11011
......@@ -118,7 +118,7 @@ class IndexCache extends JDBCCompositeCache<GenericStructContainer, GenericTable
String columnName = GenericUtils.safeGetStringTrimmed(indexObject, dbResult, JDBCConstants.COLUMN_NAME);
String ascOrDesc = GenericUtils.safeGetStringTrimmed(indexObject, dbResult, JDBCConstants.ASC_OR_DESC);
GenericTableColumn tableColumn = parent.getAttribute(session.getProgressMonitor(), columnName);
GenericTableColumn tableColumn = CommonUtils.isEmpty(columnName) ? null : parent.getAttribute(session.getProgressMonitor(), columnName);
if (tableColumn == null) {
log.debug("Column '" + columnName + "' not found in table '" + parent.getName() + "' for index '" + object.getName() + "'");
return null;
......
......@@ -96,7 +96,7 @@ class PrimaryKeysCache extends JDBCCompositeCache<GenericStructContainer, Generi
{
String columnName = GenericUtils.safeGetStringTrimmed(pkObject, dbResult, JDBCConstants.COLUMN_NAME);
if (CommonUtils.isEmpty(columnName)) {
log.warn("Null primary key column for '" + object.getName() + "'");
log.debug("Null primary key column for '" + object.getName() + "'");
return null;
}
if (columnName.startsWith("[") && columnName.endsWith("]")) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册