1 Vote Vote

Reading varbinary data with mysql connector C

Posted by topdog 499 days ago Questions| mysql data array All

Hello guys,

i want to read serialized double array stored in varbinary field, can anyone provide link or explaination how to do that?

sprintf(qbuff, "SELECT ID, time, instrument,ask, ask_array_data, bid, bid_array_data, ask_volume, ask_volume_array_data, bid_volume, bid_volume_array_data FROM ticks WHERE time > %llu AND time <= %llu", from, to); 

mysql_query(m_connection, qbuff);

MYSQL_RES *rset = mysql_store_result(m_connection);
MYSQL_ROW row;

while((row = mysql_fetch_row(rset)))
{
 // how to determine size of ...array_data columns and retrive data ?
 // 
}

Originally asked by: Alexey on Stack Overflow

Discuss Bury


Who Voted for this Question