MySQL Forums
Forum List  »  Connector/C++

Re: Xdevapi problem with timestamp
Posted by: Rafal Somla
Date: September 14, 2021 08:49AM

Yes, currently only numeric and string values are conveniently represented as C++ types. For other SQL types it is not so clear what should be the corresponding C++ type. For example the standard C/C++ library support for temporal data is not so great and proper types are being introduced only in latest C++20 standard (although there is old struct tm that could be used).

I think that the best approach is to let user decide what C++ types he wants to use to represent non-obvious SQL values. But yes, eventually we could/should make it easier for the user than decoding raw x-protocol representations of the values.

Options: ReplyQuote


Subject
Views
Written By
Posted
477
August 28, 2021 06:42PM
261
September 10, 2021 02:37PM
259
September 14, 2021 07:57AM
Re: Xdevapi problem with timestamp
218
September 14, 2021 08:49AM
214
September 14, 2021 08:53AM


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.