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

Qt mysql driver binds miliseconds improperly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 4.8.x
    • Fix Version/s: None
    • Component/s: SQL Support
    • Labels:
      None
    • Commits:
      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

              Assignee:
              mabrand Mark Brand
              Reporter:
              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