Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support escaped keyspace names #26

Open
swalendzik opened this issue Mar 8, 2017 · 0 comments
Open

Support escaped keyspace names #26

swalendzik opened this issue Mar 8, 2017 · 0 comments

Comments

@swalendzik
Copy link

swalendzik commented Mar 8, 2017

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 pushed a commit to swalendzik/cassandra-migration that referenced this issue Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant