Permalink
Browse files

cqlsh: ninja-kill 'Perhaps you meant to use CQL X' warning

  • Loading branch information...
1 parent 59bd0e7 commit 29ad6bdca67f219c4bddb6e08dd629a2239a5909 @iamaleksey iamaleksey committed May 7, 2013
Showing with 0 additions and 9 deletions.
  1. +0 −9 bin/cqlsh
View
@@ -1008,15 +1008,6 @@ class Shell(cmd.Cmd):
time.sleep(1*trynum)
except cql.ProgrammingError, err:
self.printerr(str(err))
- # try reparsing as cql3; if successful, suggest -3
- if self.cqlver_atleast(3):
- if self.parseable_as_cql2(statement):
- self.printerr("Perhaps you meant to use CQL 2? Try using"
- " the -2 option when starting cqlsh.")
- else:
- if self.parseable_as_cql3(statement):
- self.printerr("Perhaps you meant to use CQL 3? Try using"
- " the -3 option when starting cqlsh.")
return False
except CQL_ERRORS, err:
self.printerr(str(err))

0 comments on commit 29ad6bd

Please sign in to comment.