vogelsgesang commented on issue #178:
URL: 
https://github.com/apache/arrow-flight-sql-postgresql/issues/178#issuecomment-1847992730

   Ok, I think I am getting closer. The problem seems to be that the 
"parameters" of the prepared query are never set. If I use
   
   ```
          cur.execute("SELECT $1;", parameters=(42,))
   ```
   instead of
   ```
          cur.execute("SELECT 42;")
   ```
   everything works as expected.
   
   
   For the original, non-parameterized query, I was able to confirm that 
`parameters_` is empty when reaching `PreparedStatement::select`
   
   Not sure if this is a bug in ADBC because it does not set the parameters. I 
guess ADBC skips the call to `DoPutPreparedStatementQuery` in this case. Not 
sure if this is a client-side bug in ADBC. But even if it is, I guess the 
server should be robust against this and report an error?


-- 
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