mkoppanen/php-pdo_cassandra — pull request #5 by Gasol (2011-12-29 10:25:22+00:00)
Title: fix PDO::quote

```php
prepare('INSERT INTO FooCF (KEY, column) VALUES(:key, :column)');
$stmt->bindValue('key', 'quote_test');
$stmt->bindValue('column', "single quote-> ' <- single quote");
$stmt->execute(); // throw exception

```

It's broken that binding value in prepare statement so far.
because `PDO::quote` had wrong way to escape single quote.

A `` is encased in `'single quotes'`. A single quote itself can be represented in a string literal by doubling it, as in SQL: `'Single quote -> '' <-'`.

says in [CQL.textile](https://github.com/apache/cassandra/blob/trunk/doc/cql/CQL.textile)

There are some discussion in other client.

1. https://github.com/kreynolds/cassandra-cql/pull/20
2. http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/CQL-How-to-escape-single-quotes-td6647132.html