Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-46589

Qt mysql driver binds miliseconds improperly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.8.x
    • SQL Support
    • None
    • 7216387370203fc8f49d76cc2cb68bb5286c8dff

    Description

      I found a bug in MySQL driver: it inserts miliseconds part of QTime improperly. The reason of this bug is in src/sql/drivers/mysql/qsql_mysql.cpp:

      line 866: myTime->second_part = time.msec();
      should be: myTime->second_part = time.msec()*1000;

      tested this fix, works for me.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mabrand Mark Brand
              thesourcehim Max Fedotov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes