Quantcast
Channel: Toad for MySQL
Viewing all articles
Browse latest Browse all 1315

Forum Post: RE: DateTime subseconds off by 10x on mysql-5.6.16-winx64 & Toad 7.2.0.2922

$
0
0
Henrik, Thanks for looking at this. The create_date is a datetime(2) created with an sql create table statement:   `create_date` datetime(2) DEFAULT '...   I could not figure out how to coax TOAD to give it  2 subsecond digits, so I hacked it by hand from  the create table syntax from dev.mysql.com/.../create-table.html: As far as the 400ms select value, yes, that is correct. However, the same select without the microseconds/1000 shows .040, 40 ms, not 400.  Look at the screen capture showing the contradictory values: the Create_Date of 2013-03-31 14:53:26.04     AND microseconds(create_date)/1000 as 400.  ".04" is 40 thousandths, not the correct value of 400. The GUI is inserting a leading zero immediately behind the decimal that makes the value wrong. --The command line shows it exactly as expected.   Thank you,    Brian

Viewing all articles
Browse latest Browse all 1315

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>