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

unterminated quoted string in connection info string

XMLWordPrintable

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

      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);
          }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes