avm19 commented on issue #3319: URL: https://github.com/apache/arrow-adbc/issues/3319#issuecomment-3208628889
Before, I was able to do `cursor.executemany("INSERT INTO test1 (id, val) VALUES ($1, $2);", [])` without any errors. From looking at the old Python code, it seems that the passed empty Python list `[]` would be automatically replaced by an empty batch `pyarrow.record_batch([])` and then bound as a parameter to the prepared statement. (I have no idea what happens next at a deeper level, in C code or in libpq). In the new code no binding seems to take place, as the passed empty list `[]` is replaced by `None`. From reading the docstring of `executemany()`, I take away that parameter value `None` has a special meaning, separate from `[]`. But `elif seq_of_parameters: ` makes no distinction between them. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org