{"action":"created","issue":{"url":"https://api.github.com/repos/tupshin/cassandra-rs/issues/3","repository_url":"https://api.github.com/repos/tupshin/cassandra-rs","labels_url":"https://api.github.com/repos/tupshin/cassandra-rs/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/tupshin/cassandra-rs/issues/3/comments","events_url":"https://api.github.com/repos/tupshin/cassandra-rs/issues/3/events","html_url":"https://github.com/tupshin/cassandra-rs/issues/3","id":76821007,"number":3,"title":"Attempting to recreate simple example fails on a syntax error","user":{"login":"cschneid","id":6119,"avatar_url":"https://avatars.githubusercontent.com/u/6119?v=3","gravatar_id":"","url":"https://api.github.com/users/cschneid","html_url":"https://github.com/cschneid","followers_url":"https://api.github.com/users/cschneid/followers","following_url":"https://api.github.com/users/cschneid/following{/other_user}","gists_url":"https://api.github.com/users/cschneid/gists{/gist_id}","starred_url":"https://api.github.com/users/cschneid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschneid/subscriptions","organizations_url":"https://api.github.com/users/cschneid/orgs","repos_url":"https://api.github.com/users/cschneid/repos","events_url":"https://api.github.com/users/cschneid/events{/privacy}","received_events_url":"https://api.github.com/users/cschneid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-15T18:57:05Z","updated_at":"2016-03-06T14:58:10Z","closed_at":"2016-03-06T14:58:10Z","body":"```\r\nRust v1.0\r\n[cqlsh 4.1.1 | Cassandra 2.0.14 | CQL spec 3.1.1 | Thrift protocol 19.39.0]\r\n```\r\n\r\nMy code is nearly the same as the code in examples/\r\n\r\n```\r\nextern crate cassandra;\r\nuse cassandra::*;\r\nstatic CONTACT_POINTS:&'static str = \"172.20.20.10\";\r\n\r\nfn main() {\r\n  println!(\"Before cluster connect\");\r\n  let cluster = &CassCluster::new()\r\n                      .set_contact_points(CONTACT_POINTS).unwrap()\r\n                      .set_load_balance_round_robin().unwrap();\r\n\r\n  println!(\"Before session connect\");\r\n  let mut session = CassSession::new().connect(&cluster).wait().unwrap();\r\n  println!(\"Before session execute\");\r\n  let result = session.execute(\"SELECT keyspace_name FROM system.schema_keyspaces;\", 0).wait().unwrap();\r\n\r\n  println!(\"{:?}\", result);\r\n\r\n  session.close().wait().unwrap();\r\n}\r\n```\r\n\r\nAnd I get the output & error:\r\n\r\n```\r\nin Ticks/ on master\r\n› cargo run --verbose\r\n       Fresh gcc v0.3.5\r\n       Fresh libc v0.1.7\r\n       Fresh cql_bindgen v0.0.11\r\n       Fresh cassandra v0.2.5\r\n       Fresh time v0.1.25\r\n       Fresh Ticks v0.1.0 (file:///Users/cschneid/Code/Rust/Ticks)\r\n     Running `target/debug/Ticks`\r\nBefore cluster connect\r\nBefore session connect\r\nBefore session execute\r\nthread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: \"Syntax error\"', /Users/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-mac/build/src/libcore/result.rs:729\r\nProcess didn't exit successfully: `target/debug/Ticks` (exit code: 101)\r\n```\r\n\r\nThe query runs fine in the cqlsh interface, so there's something else going on with the result, or result unwraping.  I have the c++ library linked from their homebrew recipe, which is `1.0.0`."},"comment":{"url":"https://api.github.com/repos/tupshin/cassandra-rs/issues/comments/192903010","html_url":"https://github.com/tupshin/cassandra-rs/issues/3#issuecomment-192903010","issue_url":"https://api.github.com/repos/tupshin/cassandra-rs/issues/3","id":192903010,"user":{"login":"tupshin","id":202062,"avatar_url":"https://avatars.githubusercontent.com/u/202062?v=3","gravatar_id":"","url":"https://api.github.com/users/tupshin","html_url":"https://github.com/tupshin","followers_url":"https://api.github.com/users/tupshin/followers","following_url":"https://api.github.com/users/tupshin/following{/other_user}","gists_url":"https://api.github.com/users/tupshin/gists{/gist_id}","starred_url":"https://api.github.com/users/tupshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tupshin/subscriptions","organizations_url":"https://api.github.com/users/tupshin/orgs","repos_url":"https://api.github.com/users/tupshin/repos","events_url":"https://api.github.com/users/tupshin/events{/privacy}","received_events_url":"https://api.github.com/users/tupshin/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T14:58:10Z","updated_at":"2016-03-06T14:58:10Z","body":"I believe later refactorings and bug fixes resolved a race condition that could cause this. Please reopen if you see it again."}}