Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

how to cast fields to c++ data types (no replies)

$
0
0
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.

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>