Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2558

ODBC: SQLPrepare(SQLPrepareW) should prepare query metadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v1.6.0
    • v2.1.0
    • Driver - ODBC
    • None

    Description

      When use SSRS BI to save query to dataset, error will be thrown out.

      Root cause, SQLPrepareW does not prepare column info and SQLNumResultCols will fail.

      driver_debug.log
      [DEBUG]SQLPrepareW called on: 191574520
      [INFO ]SQLFreeStmt called, 191574520 with option 0
      [DEBUG]SQLFreeStmt called for Result
      [DEBUG]The query being prepared is :
      [DEBUG]SELECT   COUNT(*) AS AA
      
      FROM      kylin_sales
      [DEBUG]SQLNumResultCols called
      [DEBUG]_SQLPutDiagRow called, handle type is 3
      [DEBUG]DiagMsg: [Kylin][ODBC 1.0(w) Driver]no resultset or IRD
      

      Attachments

        Activity

          People

            event Yifan Zhang
            event Yifan Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: