mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-1.2' into trunk
This commit is contained in:
commit
3ca160ea72
|
|
@ -958,15 +958,6 @@ class Shell(cmd.Cmd):
|
||||||
time.sleep(1*trynum)
|
time.sleep(1*trynum)
|
||||||
except cql.ProgrammingError, err:
|
except cql.ProgrammingError, err:
|
||||||
self.printerr(str(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
|
return False
|
||||||
except CQL_ERRORS, err:
|
except CQL_ERRORS, err:
|
||||||
self.printerr(str(err))
|
self.printerr(str(err))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue