Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSqlDatabase IsOpen OCI doesn't see cracking connection to Database.
Forum Updated to NodeBB v4.3 + New Features

QSqlDatabase IsOpen OCI doesn't see cracking connection to Database.

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 601 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stefan_Lux
    wrote on last edited by Stefan_Lux
    #1

    while connection to the database is cracking (lost WLAN, unplug cable, etc..) and you ask via class QSqlDatabase isOpen you will get the result true. I fixed the issue in my local installation. please advise how to provide solution for implementation in further releases. I'm using Qt Version 5.9.1 and OCI Driver as plugin with MSVC 2015.
    I found in Bug Database QTBUG-224 and QTBUG-10429 which exactly reporting that bug. Why is it not implemented yet? A solution was provided already in 2010.

    jsulmJ 1 Reply Last reply
    0
    • S Stefan_Lux

      while connection to the database is cracking (lost WLAN, unplug cable, etc..) and you ask via class QSqlDatabase isOpen you will get the result true. I fixed the issue in my local installation. please advise how to provide solution for implementation in further releases. I'm using Qt Version 5.9.1 and OCI Driver as plugin with MSVC 2015.
      I found in Bug Database QTBUG-224 and QTBUG-10429 which exactly reporting that bug. Why is it not implemented yet? A solution was provided already in 2010.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Stefan_Lux This is something you should discuss in the bug tracker or developers mailing list, not here. This forum is for Qt users. From QTBUG-224: "isOpen() does not cause database traffic, and should not start doing so". So, most probably this method will not be changed, but you can suggest a new one like isConnected().

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Stefan_Lux
        wrote on last edited by
        #3

        Thanks for advice.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved