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

[OLEDB] OleDbCommand.ExecuteReader(CommandBehavior) problem

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: OLEDB-9.1.0.p1
    • Fix Version/s: OLEDB-9.1.0.p1
    • Component/s: OLEDB
    • Labels:
      None

      Description

      • Brief:
        • System.Data.OleDb.OleDbException is throwed when call OleDbCommand.ExecuteReader(CommandBehavior) with parameter 'CommandBehavior.SingleRow'
        • Exception: System.Data.OleDb.OleDbException : A provider-specific error occurred
      • Test Code
                [Test, Description("Check oledbConnection object from Schema object.")]   
                public void ConnInfoTest()
                {
        	    string strSqlSelect = "select * from demotable where rownum =1";
                    string strConnection="Provider=CUBRIDProvider;Data Source=testdb;Location=127.0.0.1;User ID=dba;Password=xxx;Port= 33000"
                    OleDbConnection connCubrid = new OleDbConnection(strConnection);
                    OleDbCommand cmdCubrid = connCubrid.CreateCommand();
        	    OleDbDataReader reader = cmdCubrid.ExecuteReader(CommandBehavior.SingleRow);
                    Assert.IsNotNull(reader);
                }
        

        Activity

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

        if define CCI_PREPARE_UPDATABLE, we need call cci_set_holdability(hConn, 0) before prepare.

        Show
        cn15800 谢韦华[Bert] added a comment - if define CCI_PREPARE_UPDATABLE, we need call cci_set_holdability(hConn, 0) before prepare.
        Hide
        guorui 郭瑞 added a comment -

        OS:Windows7 32-bit
        .Net Framework: 3.5
        Test version: OLEDB-9.1 (20130502-17480225)
        Test Result: pass

        Show
        guorui 郭瑞 added a comment - OS:Windows7 32-bit .Net Framework: 3.5 Test version: OLEDB-9.1 (20130502-17480225) Test Result: pass

          People

          • Assignee:
            cn15800 谢韦华[Bert]
            Reporter:
            guorui 郭瑞
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: