cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r1084745 - /cassandra/trunk/drivers/py/cql/connection.py
Date Wed, 23 Mar 2011 21:17:19 GMT
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):



Mime
View raw message