The table in my database has got one blob type column. I use it to store the following structure:
struct a
{
int x;
string y;
} ;
I've written a C++ function to retrieve this blob using the above mentions structure's variable. I'm using cass_value_get_bytes function for that.
The problem is that I get a segmentation fault if I use the above mentioned structure. However if I change the string type to a character array, the problem solves. I'm unable to understand why can't I use a string variable as it's so much neater to use a string than a character array.