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

unterminated quoted string in connection info string

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.1.3
    • Fix Version/s: None
    • Component/s: SQL Support
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            mabrand Mark Brand
            Reporter:
            sp3x Marcel Genovese
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes