MySQL Forums
Forum List  »  Connector/C++

Dealing with date and time fields
Posted by: Ky Leung
Date: December 04, 2017 02:18PM

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).

Options: ReplyQuote


Subject
Views
Written By
Posted
Dealing with date and time fields
225
December 04, 2017 02:18PM


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.