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

unterminated quoted string in connection info string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 6.1.3
    • SQL Support
    • None
    • Windows

    Description

      Hello,

       

      the error does not occur in QT5.15.

      Everytime i try to connect to the PGRE-Sql Database i get this error:

      "unterminated quoted string in connection info string\nQPSQL: Es kann keine Verbindung aufgebaut werden"
      
          m_db = QSqlDatabase::addDatabase(APP_SQL_DRIVER);
      
          m_db.setUserName("postgres");
          m_db.setPassword("postgres");
          m_db.setHostName("localhost");
          m_db.setPort(5432);
          m_db.setDatabaseName("database");
      
          if(m_db.open()) {
              QTimer::singleShot(APP_DB_TIMER_MS, this, &Data::checkDb);
          } else {
              QTimer::singleShot(APP_DB_TIMER_MS, this, &Data::dbConnect);
          }
      

      Attachments

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

        Activity

          People

            chehrlic Christian Ehrlicher
            sp3x Marcel Genovese
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes