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

[ADO.NET] CUBRIDConnection.Open should check whether the connection string is null and specify this issue in the exception's message

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: ADONET-8.4.3, ADONET-9.1.0
    • Fix Version/s: ADO.NET 9.2.0.0001
    • Component/s: ADO.NET
    • Labels:

      Description

      CUBRIDConnection.Open() should check whether the connection string is null and specify this in the exception's message.
      Now, if I try to call CUBRIDConnection.Open() without specify the connection string, an exception will be thrown, but the exception message is null.

        Activity

        Hide
        cn15800 谢韦华[Bert] added a comment - - edited

        If you set coonect string as null, a exception will be throw:

        Unhandled Exception: CUBRID.Data.CUBRIDClient.CUBRIDException: Connection string
        is null.

        {code}
        CUBRIDConnection conn_l = new CUBRIDConnection();
        conn_l.ConnectionString = null;
        conn_l.Open();{code}
        Show
        cn15800 谢韦华[Bert] added a comment - - edited If you set coonect string as null, a exception will be throw: Unhandled Exception: CUBRID.Data.CUBRIDClient.CUBRIDException: Connection string is null. {code} CUBRIDConnection conn_l = new CUBRIDConnection(); conn_l.ConnectionString = null; conn_l.Open();{code}
        Hide
        cn15800 谢韦华[Bert] added a comment -

        If you do not set coonect string, for example

        {code}
        CUBRIDConnection conn_l = new CUBRIDConnection();
        conn_l.Open();{code}

        Driver will conncet default address, 127.0.0.1:33000

        Show
        cn15800 谢韦华[Bert] added a comment - If you do not set coonect string, for example {code} CUBRIDConnection conn_l = new CUBRIDConnection(); conn_l.Open();{code} Driver will conncet default address, 127.0.0.1:33000
        Hide
        ryin005 Ray Yin added a comment - - edited
        • Test OS: Win32
        • CUBRID: 9.2.0.0149
        • Driver: cubrid-ado.net 9.2.0.0001 (20130911)
        • Framework: .NET 4.0

        Test Result: Pass

        Close the issue

        Show
        ryin005 Ray Yin added a comment - - edited Test OS: Win32 CUBRID: 9.2.0.0149 Driver: cubrid-ado.net 9.2.0.0001 (20130911) Framework: .NET 4.0 Test Result: Pass Close the issue

          People

          • Assignee:
            cn15800 谢韦华[Bert]
            Reporter:
            cn15701 cuiman
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: