英文:
Using python polars `read_sql` query giving error `BINARY not supported` but there are no binary type columns in my table
问题
New to polars, trying to execute a simple query against a postgresql database where there are no binary
type fields but I get an error RuntimeError: db error: ERROR: BINARY is not supported
. I assume I am doing something wrong or I'm ignorant to how to fix. Any help is greatly appreciated.
英文:
New to polars, trying to execute a simple query against a postgresql database where there are no binary
type fields but I get an error RuntimeError: db error: ERROR: BINARY is not supported
. I assume I am doing something wrong or I'm ignorant to how to fix. Any help is greatly appreciated.
答案1
得分: 1
需要将 "A closer look at the docs, and then a look at the connectorx docs, revealed that I need to set the protocol
to cursor. This fixed the issue." 翻译为:「仔细查看文档,然后查看connectorx文档,发现我需要将 'protocol' 设置为 cursor。这解决了问题。」
英文:
A closer look at the docs, and then a look at the connectorx docs, revealed that I need to set the protocol
to cursor. This fixed the issue.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论