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

Error inserting value in field varchar(1) with prepared query with ODBC sql driver

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 5.15.14, 6.5.0
    • 5.15.13
    • SQL Support
    • None
    • All
    • 5a334b3d2 (dev)

    Description

      Inserting a string made by 1 char with a prepared query fails with error

      [Microsoft][SQL Server Native Client 11.0][SQL Server] String or binary data would be truncated.

      The same software works with Qt 5.15.12

      Attachments

        1. main.cpp
          1 kB
        2. CMakeLists.txt
          2 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-112375
          # Subject Branch Project Status CR V

          Activity

            People

              chehrlic Christian Ehrlicher
              marcolazzarotto Marco Lazzarotto
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes