Commit b8c8f57a82d3de7685fc5c889c0943b2e65bf280

Authored by Volodymyr Babak
1 parent c34fb5d9

Fixed dump for bigint

... ... @@ -224,7 +224,7 @@ public class CassandraDatabaseUpgradeService implements DatabaseUpgradeService {
224 224
225 225 case "2.1.1":
226 226
227   - log.info("Upgrading Cassandara DataBase from version {} to 2.1.2 ...", fromVersion);
  227 + log.info("Upgrading Cassandra DataBase from version {} to 2.1.2 ...", fromVersion);
228 228
229 229 cluster.getSession();
230 230
... ...
... ... @@ -147,6 +147,8 @@ public class CassandraDbHelper {
147 147 str = new Double(row.getDouble(index)).toString();
148 148 } else if (type == DataType.cint()) {
149 149 str = new Integer(row.getInt(index)).toString();
  150 + } else if (type == DataType.bigint()) {
  151 + str = new Long(row.getLong(index)).toString();
150 152 } else if (type == DataType.uuid()) {
151 153 str = row.getUUID(index).toString();
152 154 } else if (type == DataType.timeuuid()) {
... ... @@ -193,6 +195,8 @@ public class CassandraDbHelper {
193 195 boundStatement.setDouble(column, Double.valueOf(value));
194 196 } else if (type == DataType.cint()) {
195 197 boundStatement.setInt(column, Integer.valueOf(value));
  198 + } else if (type == DataType.bigint()) {
  199 + boundStatement.setLong(column, Long.valueOf(value));
196 200 } else if (type == DataType.uuid()) {
197 201 boundStatement.setUUID(column, UUID.fromString(value));
198 202 } else if (type == DataType.timeuuid()) {
... ...