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

QSqlQuery sets the timezone on QDateTime after a SQL SELECT on a DATE field (Oracle datatype)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.3
    • SQL Support
    • None
    • All

    Description

      QSqlQuery sets the timezone on QDateTime after a SQL SELECT on a DATE field (Oracle datatype) although this datatype does not contain timezone information.

      This behaviour was introduced after this QTBUG : https://bugreports.qt.io/browse/QTBUG-46271

      As explained in this issue, only those fields should have been impacted :

      • TIMESTAMP WITH TIMEZONE
      • TIMESTAMP WITH LOCAL TIMEZONE

      Not :

      • TIMESTAMP
      • DATE

      Attachments

        1. main.cpp
          2 kB
          Yan Shapochnik
        2. OracleDateTest.cpp
          2 kB
          Julien CUGNIERE
        3. qt-5.15-QTBUG-76573-OCI-invalid-timezone-with-DATE.patch
          2 kB
          Julien CUGNIERE

        Issue Links

          Activity

            People

              mabrand Mark Brand
              a.cornille Alexandre CORNILLE
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: