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

Qt mysql driver binds miliseconds improperly

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes