MySQL Forums
Forum List  »  Connector/C++

DateTime issue with mysql++
Posted by: Pierre-Etienne Delon
Date: April 26, 2010 02:32AM

Hello,

I have a very simple query that selects values of a time serie between two timestamps :

SELECT value FROM `data` WHERE stamp>='2010-04-26 07:00:00' AND stamp<'2010-04-27 07:00:00'

The results of this query are different with mysql++ and the mysql client console. I have a two hours shift that corresponds to the diffenrence between UTC and local time (GMT+2). What is the problem ? What should I do to get the right results with mysql++ ?

Thanks for your help

Options: ReplyQuote


Subject
Views
Written By
Posted
DateTime issue with mysql++
3216
April 26, 2010 02:32AM
1389
July 19, 2010 11:32AM


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.