From 29ad6bdca67f219c4bddb6e08dd629a2239a5909 Mon Sep 17 00:00:00 2001 From: Aleksey Yeschenko Date: Tue, 7 May 2013 16:44:22 +0300 Subject: [PATCH] cqlsh: ninja-kill 'Perhaps you meant to use CQL X' warning --- bin/cqlsh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/bin/cqlsh b/bin/cqlsh index aa894b6fb6..a29eee4726 100755 --- a/bin/cqlsh +++ b/bin/cqlsh @@ -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))