Uploaded image for project: 'CUBRID APIs'
  1. CUBRID APIs
  2. APIS-185

"Unknown DBMS error" from cubrid_connect(), if database is not started

    Details

      Description

      When database is not started, and I try to connect to it in PHP API (perhaps, all the way up to CCI API), it returns "Error code: 0; Message: Unknown DBMS error".

      CUBRID JDBC driver, in comparison, returns: "Error: Failed to connect to database server, 'demodb', on the following host(s): localhost:localhost".

      PHP API should return similar and clear error message.

        Issue Links

          Activity

          Hide
          jinhu 李金虎 added a comment -

          If the database is not started, use the error message from CCI.
          error num is -20016 and error message is "Cannot connect to CUBRID CAS".

          Fix in trunk. Revision: 1366
          merge into RB-8.4.1. Revision: 1367
          merge into RB-8.4.3. Revision: 1368
          merge into RB-8.4.4. Revision: 1369

          Resolved.

          Show
          jinhu 李金虎 added a comment - If the database is not started, use the error message from CCI. error num is -20016 and error message is "Cannot connect to CUBRID CAS". Fix in trunk. Revision: 1366 merge into RB-8.4.1. Revision: 1367 merge into RB-8.4.3. Revision: 1368 merge into RB-8.4.4. Revision: 1369 Resolved.
          Hide
          cn14130 欧明宝[Bom Owen] added a comment -

          The return error has change to "[-20016] Cannot connect to CUBRID CAS" when db service is not started
          Test Build: 9.1.0.0201
          Test OS: Windows 7 32 bit and Windows 7 64 bit
          php driver: 9.1.0.0001
          Test Result: pass
          RB-8.4.1, RB-8.4.3, RB-8.4.4 will be validated by daily qa test

          Show
          cn14130 欧明宝[Bom Owen] added a comment - The return error has change to " [-20016] Cannot connect to CUBRID CAS" when db service is not started Test Build: 9.1.0.0201 Test OS: Windows 7 32 bit and Windows 7 64 bit php driver: 9.1.0.0001 Test Result: pass RB-8.4.1, RB-8.4.3, RB-8.4.4 will be validated by daily qa test

            People

            • Assignee:
              jinhu 李金虎
              Reporter:
              kadishmal Esen Sagynov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: