You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
psqlpy-0.7.6
The following code raises: psqlpy.exceptions.RustToPyValueMappingError: Can't convert value from driver to python type: Cannot convert PostgreSQL type _int4 into Python type, err: array contains too many dimensions
(the query executes properly in PSQL)
importasynciofrompsqlpyimportConnectionPooldefmain():
db_pool=ConnectionPool()
result=asyncio.run(db_pool.execute(
"SELECT array_agg(arr) FROM (SELECT array(SELECT generate_series(0, 10, 1)) as arr FROM (SELECT generate_series(0, 10, 1) as value));",
))
result.result()
db_pool.close()
main()