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

This is same fix with #56.
I just move changes into branch. (still learning about git branch, sorry for making this noise.)

--------

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)