TOAD for MySQL 6.7.0.1524 cannot display fractional data that is saved in DATETIME(6) or TIMESTAMP(6) columns or any data/time function using the new "(6)" that indicates fractional seconds. It will, however, allow definition of the column: Example query form the mysql CLI client: mysql select sysdate(); +---------------------+ | sysdate() | +---------------------+ | 2013-06-14 17:39:35 | +---------------------+ 1 row in set (0.00 sec) mysql select sysdate(6); +----------------------------+ | sysdate(6) | +----------------------------+ | 2013-06-14 17:40:04.838347 | +----------------------------+ 1 row in set (0.00 sec) But try running the "SELECT SYSDATE(6)" from a TOAD for MySQL editor window ... we get a Java stack trace: SELECT SYSDATE(6); System.FormatException Input string was not in a correct format. Stack Trace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at MySql.Data.Types.MySqlDateTime.ParseMySql(String s) at MySql.Data.Types.MySqlDateTime.MySql.Data.Types.IMySqlValue.ReadValue(MySqlPacket packet, Int64 length, Boolean nullVal) at MySql.Data.MySqlClient.NativeDriver.ReadColumnValue(Int32 index, MySqlField field, IMySqlValue valObject) at MySql.Data.MySqlClient.ResultSet.ReadColumnData(Boolean outputParms) at MySql.Data.MySqlClient.ResultSet.NextRow(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlDataReader.Read() at Quest.Toad.Db.ToadDataAdapter.InternalReadBackground() � This really limits our ability to develop, test and debug tables that use DATETIME(6), and TIMESTAMP(6) columns that contain fractions second values. Can someone please look into this?
↧