datastax/python-driver — pull request #56 by yinyin (2013-12-01 17:29:31+00:00)
Title: resolve "no viable alternative at input" when insert/update with map or list which contains blob as inner types

My environment is Linux + Cassandra 2.0.3

The table I am working with has column typed as map. I received syntax exception when attempting to insert data rows.
```
(here is one of the exception I got: SyntaxException: )
```

After look into the exception, I noticed that the encoder of python dict object calls cql_quote() which cannot correctly encode python bytearray object into CQL blob literal.

This patch works in my use case. I made a set of test: https://gist.github.com/yinyin/7736711 to verify this patch. This patch also tested with tests/integration/test_types.py with ccm dependency removed. (I have trouble with ccm library ... cannot get all tests running with/without this patch)