cassandra-migration icon indicating copy to clipboard operation
cassandra-migration copied to clipboard

Support escaped keyspace names

Open swalendzik opened this issue 7 years ago • 0 comments

Current version does not support keyspace names that starts with numbers and have to escaped Example keyspace 111_test have to be passed as parameter -Dcassandra.migration.keyspace.name="111_test" and it fails at this check for (KeyspaceMetadata keyspaceMetadata : keyspaces) { if (keyspace.getName().equalsIgnoreCase(keyspaceMetadata.getName())) keyspaceExists = true; } if (keyspaceExists) session.execute("USE " + keyspace.getName()); else throw new CassandraMigrationException("Keyspace: " + keyspace.getName() + " does not exist.");

swalendzik avatar Mar 08 '17 15:03 swalendzik