Fixed dump for bigint

This commit is contained in:
Volodymyr Babak 2018-10-10 11:21:49 +03:00
parent c34fb5d963
commit b8c8f57a82
2 changed files with 5 additions and 1 deletions

View File

@ -224,7 +224,7 @@ public class CassandraDatabaseUpgradeService implements DatabaseUpgradeService {
case "2.1.1": case "2.1.1":
log.info("Upgrading Cassandara DataBase from version {} to 2.1.2 ...", fromVersion); log.info("Upgrading Cassandra DataBase from version {} to 2.1.2 ...", fromVersion);
cluster.getSession(); cluster.getSession();

View File

@ -147,6 +147,8 @@ public class CassandraDbHelper {
str = new Double(row.getDouble(index)).toString(); str = new Double(row.getDouble(index)).toString();
} else if (type == DataType.cint()) { } else if (type == DataType.cint()) {
str = new Integer(row.getInt(index)).toString(); str = new Integer(row.getInt(index)).toString();
} else if (type == DataType.bigint()) {
str = new Long(row.getLong(index)).toString();
} else if (type == DataType.uuid()) { } else if (type == DataType.uuid()) {
str = row.getUUID(index).toString(); str = row.getUUID(index).toString();
} else if (type == DataType.timeuuid()) { } else if (type == DataType.timeuuid()) {
@ -193,6 +195,8 @@ public class CassandraDbHelper {
boundStatement.setDouble(column, Double.valueOf(value)); boundStatement.setDouble(column, Double.valueOf(value));
} else if (type == DataType.cint()) { } else if (type == DataType.cint()) {
boundStatement.setInt(column, Integer.valueOf(value)); boundStatement.setInt(column, Integer.valueOf(value));
} else if (type == DataType.bigint()) {
boundStatement.setLong(column, Long.valueOf(value));
} else if (type == DataType.uuid()) { } else if (type == DataType.uuid()) {
boundStatement.setUUID(column, UUID.fromString(value)); boundStatement.setUUID(column, UUID.fromString(value));
} else if (type == DataType.timeuuid()) { } else if (type == DataType.timeuuid()) {