Updated Branches: refs/heads/cassandra-1.2 acc3c8de2 -> ae3efc2d0
cqlsh tracing: ninja-remove quotes around session_id Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/ae3efc2d Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/ae3efc2d Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/ae3efc2d Branch: refs/heads/cassandra-1.2 Commit: ae3efc2d069e0035938f47b69a43065ce2d69e60 Parents: acc3c8d Author: Aleksey Yeschenko <alek...@apache.org> Authored: Wed Feb 6 00:03:08 2013 +0300 Committer: Aleksey Yeschenko <alek...@apache.org> Committed: Wed Feb 6 00:03:08 2013 +0300 ---------------------------------------------------------------------- pylib/cqlshlib/tracing.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/ae3efc2d/pylib/cqlshlib/tracing.py ---------------------------------------------------------------------- diff --git a/pylib/cqlshlib/tracing.py b/pylib/cqlshlib/tracing.py index 9cbea92..fb8525d 100644 --- a/pylib/cqlshlib/tracing.py +++ b/pylib/cqlshlib/tracing.py @@ -40,13 +40,13 @@ def print_trace_session(shell, cursor, session_id): def fetch_trace_session(cursor, session_id): cursor.execute("SELECT request, coordinator, started_at, duration " "FROM %s.%s " - "WHERE session_id = '%s'" % (TRACING_KS, SESSIONS_CF, session_id), + "WHERE session_id = %s" % (TRACING_KS, SESSIONS_CF, session_id), consistency_level='ONE') (request, coordinator, started_at, duration) = cursor.fetchone() cursor.execute("SELECT activity, event_id, source, source_elapsed " "FROM %s.%s " - "WHERE session_id = '%s'" % (TRACING_KS, EVENTS_CF, session_id), + "WHERE session_id = %s" % (TRACING_KS, EVENTS_CF, session_id), consistency_level='ONE') events = cursor.fetchall()