MySQL Forums
Forum List  »  Connector/C++

Re: Connector c++ 8 converting field Value for DATE to time_t
Posted by: Claude Mally
Date: August 23, 2021 11:42AM

> Relational databases are not designed for, indeed are designed to prevent such under-the-hood data manipulation.

Indeed, there is some sort of abstraction level missing in the c++ connector library to bridge the gap between a Value and whatever c++ representation may be convenient for representing such a value for a given type, like DATETIME.

>> The result Columns have no name

> SELECT ..., CAST(birth as char) as birth_string will return the values with the aliased name `birth_string`.

using mysql console application, I get the proper name back indeed, but my application selecting CAST(field as char) as other_field produces a result row where column names for casted fields are empty strings "".

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Connector c++ 8 converting field Value for DATE to time_t
230
August 23, 2021 11:42AM


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.