amoeba commented on issue #50578:
URL: https://github.com/apache/arrow/issues/50578#issuecomment-5111742444

   I reproduced this on my Windows machine and, with ODBC tracing turned on, I 
get,
   
   ```
   ...snip...
   OdbcRepro       599c-368     ENTER SQLMoreResults 
                HSTMT               0x00000279C6A8E8E0
   
   OdbcRepro       599c-368     EXIT  SQLMoreResults  with return code -1 
(SQL_ERROR)
                HSTMT               0x00000279C6A8E8E0
   
                DIAG [HY010] [Apache Arrow][Flight SQL] (100) Function sequence 
error (100) 
   ```
   
   So it looks like the call triggering the exception is `SQLMoreResults`.
   
   I'm new to this stuff so I had an LLM take a look and it pulled up 
https://learn.microsoft.com/en-us/sql/odbc/reference/appendixes/statement-transitions?view=sql-server-ver17#sqlmoreresults
 as a reference. From my reading of that, the Statement in this case is 
probably in the prepared state and so should always return `SQL_NO_DATA`. 
Should the implementation just always return `SQL_NO_DATA` since the driver 
doesn't support it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to