$stmt = $db->prepare("UPDATE users SET full_name = :name WHERE key = :key;");
$stmt->bindValue(':key', 'mikko');
$stmt->bindValue(':name', 'mikko k');
$stmt->execute();
$stmt = $db->prepare("SELECT key, full_name FROM users WHERE key = :key;");
$stmt->bindValue(':key', 'mikko');
$stmt->execute();
var_dump($stmt->fetchAll());
?>
Выдет ошибку
Fatal error: Uncaught exception 'PDOException' with message 'CQLSTATE[08006] [8] TTransportException: Transport not open' in /home/index.php(6): PDO->__construct('cassandra:host=...') #1 {main} thrown in /home/index.php on line 6