Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-1682

[MTDCS] ODBC: SQLFetch returned invalid cursor state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-incubating
    • None
    • connectivity-dcs
    • None
    • platform: suse11
      connect info : 10.10.10.176:23400
      build : 20151121_0900-bin
      driver version: 1119

    Description

      SQLFetch returned invalid cursor state

      An unexpected error occurred when calling SQLFetch() in common.c.
      Log SHOWCONTROL ALL error. Expected SQL_SUCCESS, returned -1
      State: 24000
      Native Error: 0
      Error: [Trafodion ODBC Driver] INVALID CURSOR STATE.

      test code -
      SQLAllocStmt((SQLHANDLE)hdbc, &hstmt);
      SQLExecDirect(hstmt,(SQLTCHAR *) ShowCntl, SQL_NTS);
      //this statement is 'showcontrol all'
      SQLFetch(hstmt); // it will return error

      Attachments

        Activity

          People

            weiqxu Weiqing Xu
            rachelgao Gao, Rui-Xian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: