Revision: 092b75a21d0b
Author:   paul cannon <[email protected]>
Date:     Mon Jan  9 17:13:08 2012
Log:      fix broken python syntax in README example

http://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/source/detail?r=092b75a21d0b

Modified:
 /README

=======================================
--- /README     Fri Apr 15 05:48:15 2011
+++ /README     Mon Jan  9 17:13:08 2012
@@ -5,7 +5,7 @@
  >> import cql
  >> con = cql.connect(host, port, keyspace)
  >> cursor = con.cursor()
- >> cursor.execute("CQL QUERY", {kw=Foo, kw2=Bar, etc...})
+ >> cursor.execute("CQL QUERY", dict(kw='Foo', kw2='Bar, etc...))

     - cursor.description  # None initially, list of N tuples that represent
                               the N columns in a row after an execute. Only
@@ -25,4 +25,4 @@

 Query substitution:
  - Use named parameters and a dictionary of names and values.
-    e.g. execute("SELECT * FROM CF WHERE name=:name", name="Foo")
+    e.g. execute("SELECT * FROM CF WHERE name=:name", {"name": "Foo"})

Reply via email to