[odb-users] Problems with ODB/MySQL and boost::posix_time recording sub-second values

Adam Walters adam at navigatesurgical.com
Mon Jul 1 05:14:53 EDT 2013


Thanks Boris,
I am out of the office for a week, but I will try that when I get back. The libmysql sounds the most promising, although I think I got this from the MySQL site recently. If you have a chance to test it yourself, I would be interested in the results.
Cheers,
Adam
________________________________________
From: Boris Kolpackov
Sent: June-28-13 12:50 AM
To: Adam Walters
Cc: odb-users at codesynthesis.com
Subject: Re: [odb-users] Problems with ODB/MySQL and boost::posix_time recording sub-second values

Hi Adam,

Adam Walters <adam at navigatesurgical.com> writes:

> My tests so far don't show a difference and I wonder if I am missing a
> vital step?

Some things to try:

1. Rebuild your test completely.

2. Make sure you are using MySQL server 5.6.4 or later. That's where
   sub-second support was added.

3. It is also quite possible that you have to use the client library
   (libmysqlclient) from MySQL 5.6.4 or later since earlier versions
   might not send the sub-second part to the server.

Otherwise I should have the VM with MySQL 5.6 ready on Monday and
then I will figure it out.

Boris



More information about the odb-users mailing list