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

SQL error with cassandra 3.7 #32

Open
martinscheffler opened this issue Apr 27, 2017 · 2 comments
Open

SQL error with cassandra 3.7 #32

martinscheffler opened this issue Apr 27, 2017 · 2 comments

Comments

@martinscheffler
Copy link

In SchemaVersionDAO.java, line 205,
" SET count = count + 1" +
"WHERE name = 'installed_rank';");

there is a missing whitespace between "1" and "WHERE". This starts to cause exceptions from cassandra 3.7 on, no idea why it was accepted before

@alexis-morillo
Copy link

I have exactly the same issue with cassandra 3.10 :
Caused by: com.datastax.driver.core.exceptions.SyntaxError: line 1:86 no viable alternative at input 'HERE' (... count = count + 1W[HERE]...) at com.datastax.driver.core.exceptions.SyntaxError.copy(SyntaxError.java:58) at com.datastax.driver.core.exceptions.SyntaxError.copy(SyntaxError.java:24) at com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:37) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:245) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:68) at com.contrastsecurity.cassandra.migration.dao.SchemaVersionDAO.calculateInstalledRank(SchemaVersionDAO.java:207) at com.contrastsecurity.cassandra.migration.dao.SchemaVersionDAO.addAppliedMigration(SchemaVersionDAO.java:135) at com.contrastsecurity.cassandra.migration.action.Migrate.applyMigration(Migrate.java:126) at com.contrastsecurity.cassandra.migration.action.Migrate.run(Migrate.java:83) at com.contrastsecurity.cassandra.migration.CassandraMigration$1.execute(CassandraMigration.java:77) at com.contrastsecurity.cassandra.migration.CassandraMigration$1.execute(CassandraMigration.java:68) at com.contrastsecurity.cassandra.migration.CassandraMigration.execute(CassandraMigration.java:174) at com.contrastsecurity.cassandra.migration.CassandraMigration.migrate(CassandraMigration.java:68)

@luiseduardomiranda
Copy link

+1

luiseduardomiranda pushed a commit to luiseduardomiranda/cassandra-migration that referenced this issue Jun 7, 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

3 participants