mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-19 07:53:08 +00:00
[DS-734] Fix parsing problems from last check-in
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5713 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -1197,12 +1197,6 @@ public class DatabaseManager
|
|||||||
String name = meta.getColumnName(i);
|
String name = meta.getColumnName(i);
|
||||||
int jdbctype = meta.getColumnType(i);
|
int jdbctype = meta.getColumnType(i);
|
||||||
|
|
||||||
if (results.wasNull())
|
|
||||||
{
|
|
||||||
row.setColumnNull(name);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
switch (jdbctype)
|
switch (jdbctype)
|
||||||
{
|
{
|
||||||
case Types.BIT:
|
case Types.BIT:
|
||||||
@@ -1285,6 +1279,11 @@ public class DatabaseManager
|
|||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("Unsupported JDBC type: " + jdbctype);
|
throw new IllegalArgumentException("Unsupported JDBC type: " + jdbctype);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Determines if the last column was null, and sets the tablerow accordingly
|
||||||
|
if (results.wasNull())
|
||||||
|
{
|
||||||
|
row.setColumnNull(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -320,7 +320,7 @@ public class TableRow
|
|||||||
throw new IllegalArgumentException("No such column " + column);
|
throw new IllegalArgumentException("No such column " + column);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isColumnNull(column))
|
if (isColumnNullCanonicalized(column))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user