MagicStack / MagicStack/asyncpg
copy_from_query output function receives bytearray
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 8.1k
- Forks
- 468
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
* **asyncpg version**: 0.25.0
* **PostgreSQL version**: 13.4 (Ubuntu 13.4-1.pgdg21.04+1) + Timescale 2.4.2
* **Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
the issue with a local PostgreSQL install?**:
* **Python version**: 3.9.7
* **Platform**: Ubuntu 21.10
* **Do you use pgbouncer?**: No
* **Did you install asyncpg with pip?**: Yes
* **If you built asyncpg locally, which version of Cython did you use?**:
* **Can the issue be reproduced under both asyncio and
[uvloop](https://github.com/magicstack/uvloop)?**: Could not try without uvloop because of https://github.com/MagicStack/asyncpg/issues/240
Hi! The [documentation](https://magicstack.github.io/asyncpg/current/api/index.html?highlight=copy_from_query#asyncpg.connection.Connection.copy_from_query) states that a coroutine function passed as `output` argument will receive a `bytes` argument, but when I do this I get `bytearray`. Seems like a bug either with documentation or the code.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Start with the Connection.copy_from_query entry point and its API documentation, which state that the output coroutine receives bytes. Trace the value passed to output and compare it with the documented behavior. Done means confirming whether the code or documentation is incorrect and covering the agreed behavior with a regression test.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- postgresql, python
- Área
- databases
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100