MySQL Forums
Forum List  »  Connector/C++

how to cast fields to c++ data types
Posted by: David Brown
Date: August 28, 2018 06:58AM

I'm trying to do the most simplest of things, convert a field from a fetched row into my C++ double variable.

Connector 1.1 used a simple 'getDouble', i.e.
double aval = res->getDouble("cash_value"); //res is Resultset, cash_value a field

I can't seem to find any way to perform this using the new (i.e. 8.0) connector.

I've no problem running the select, accessing the rows in the ResultSet.

Thanks in advance for any help on this.


Embarrassingly simple question, shameful that no simple documentation exists on this.

Options: ReplyQuote


Subject
Views
Written By
Posted
how to cast fields to c++ data types
976
August 28, 2018 06:58AM
482
September 05, 2018 08:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.