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

Dealing with date and time fields (no replies)

$
0
0
I'm probably missing something very trivial, but I'm stumped. I'm using a C++ connector to read data from Mysql. Basic strings and ints are fine. But the sql::ResultSet does not have the getTime() method that's documented. So I can't access date/time fields from Mysql.

I looked at the cppconn/resultset.h and indeed there is no prototype for getTime().

I installed the cppconn via:
%apt-get install libmysqlcppconn-dev

I also downloaded the source from https://dev.mysql.com/downloads/connector/cpp/ (mysql-connector-c++-1.1.9-linux-debian8-x86-32bit) and the resultset.h is identical (no getTime() prototype).

Viewing all articles
Browse latest Browse all 527

Trending Articles



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