Comments (7)
I have a minimal main()
you can use to verify.
extern crate cassandra;
use cassandra::*;
use std::str::FromStr;
fn main() {
let mut cluster = Cluster::new();
let contact_points = ContactPoints::from_str("127.0.0.1").unwrap();
cluster.set_contact_points(contact_points).unwrap();
cluster.set_load_balance_round_robin();
let mut session = cluster.connect().unwrap();
let query = String::from("select column_name, type from system_schema.columns where keyspace_name = 'cdmtest' and table_name = 'users'");
println!("Keyspace query: {}", query);
let schema_query = Statement::new(&query, 0);
let result = session.execute(&schema_query).wait().unwrap();
for row in result {
let name : String = row.get_col_by_name("column_name").unwrap();
let ftype : String = row.get_col_by_name("type").unwrap();
println!("{} {}", name, ftype);
}
println!("Hello, world!");
}
from cassandra-rs.
I've added some debug into to my main()
and it looks like the call to cass_value_type
gets back the wrong information. I've run the program several times and I've gotten back all of the following:
CASS_VALUE_TYPE_DECIMAL
CASS_VALUE_TYPE_BIGINT
CASS_VALUE_TYPE_BLOB
CASS_VALUE_TYPE_BOOLEAN
from cassandra-rs.
I wonder if this is due to a change on the C driver in recent builds. I'm going to regen cassandra-sys and see if the problem goes away
from cassandra-rs.
Did you have any different behavior after your last regen?
from cassandra-rs.
No, still an issue
from cassandra-rs.
We should verify the equiv code actually works with the C driver
from cassandra-rs.
Fixed in 0.7.3.
from cassandra-rs.
Related Issues (20)
- Segfault when preparing invalid query
- println in get_column_by_name HOT 1
- invalid CQL queries cause a panic and program aborts HOT 3
- TableMeta should implement Display HOT 2
- Deserializing rows using Serde
- Use futures crate HOT 5
- Implement Sync/Send traits
- r2d2 Connection Pool HOT 1
- Timestamps HOT 6
- Planning to maintain this? HOT 2
- Use error-chain HOT 1
- Session->new() should be Default instead HOT 1
- compiler plugin to validate CQL statements HOT 1
- Change are really breakin.. for 0.8.0 HOT 2
- New version of cassandra-sys-rs required to build cleanly on stable HOT 1
- Can't complete the build of the crate HOT 2
- Documentation build on docs.rs fails
- Unexpected panic/unwrap when retrieving null value from database
- Transfer ownership of crate to new maintainer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cassandra-rs.