Cleanup post db-refactor.
This commit is contained in:
@@ -650,6 +650,7 @@ public class dbBuildingHandler extends dbHandlerBase {
|
|||||||
public final DbObjectType GET_UID_ENUM(long object_UID) {
|
public final DbObjectType GET_UID_ENUM(long object_UID) {
|
||||||
|
|
||||||
DbObjectType storedEnum = DbObjectType.INVALID;
|
DbObjectType storedEnum = DbObjectType.INVALID;
|
||||||
|
String objectType = "INVALID";
|
||||||
|
|
||||||
if (object_UID == 0)
|
if (object_UID == 0)
|
||||||
return storedEnum;
|
return storedEnum;
|
||||||
@@ -661,11 +662,13 @@ public class dbBuildingHandler extends dbHandlerBase {
|
|||||||
|
|
||||||
ResultSet rs = preparedStatement.executeQuery();
|
ResultSet rs = preparedStatement.executeQuery();
|
||||||
|
|
||||||
if (rs.next())
|
if (rs.next()) {
|
||||||
storedEnum = DbObjectType.valueOf(rs.getString("type").toUpperCase());
|
objectType = rs.getString("type").toUpperCase();
|
||||||
|
storedEnum = DbObjectType.valueOf(objectType);
|
||||||
|
}
|
||||||
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
Logger.error("Building", e);
|
Logger.error("UID_ENUM Lookup failed for UID: " + object_UID + "type: " + objectType);
|
||||||
return DbObjectType.INVALID;
|
return DbObjectType.INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user