You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ee...@apache.org on 2011/03/23 22:17:19 UTC

svn commit: r1084745 - /cassandra/trunk/drivers/py/cql/connection.py

Author: eevans
Date: Wed Mar 23 21:17:19 2011
New Revision: 1084745

URL: http://svn.apache.org/viewvc?rev=1084745&view=rev
Log:
tolerate leading whitespace in CQL statements

Patch by eevans

Modified:
    cassandra/trunk/drivers/py/cql/connection.py

Modified: cassandra/trunk/drivers/py/cql/connection.py
URL: http://svn.apache.org/viewvc/cassandra/trunk/drivers/py/cql/connection.py?rev=1084745&r1=1084744&r2=1084745&view=diff
==============================================================================
--- cassandra/trunk/drivers/py/cql/connection.py (original)
+++ cassandra/trunk/drivers/py/cql/connection.py Wed Mar 23 21:17:19 2011
@@ -47,7 +47,7 @@ class Connection(object):
     ...         print "%s is %s years of age" % (r.key, column.age)
     """
     _keyspace_re = re.compile("USE (\w+);?", re.I | re.M)
-    _cfamily_re = re.compile("SELECT\s+.+\s+FROM\s+(\w+)", re.I | re.M)
+    _cfamily_re = re.compile("\s+SELECT\s+.+\s+FROM\s+(\w+)", re.I | re.M)
     
     def __init__(self, host, port=9160, keyspace=None, username=None,
                  password=None, decoder=None):