From 327b7d28b2b0fba20e333870c89fd88c79ec0d72 Mon Sep 17 00:00:00 2001 From: Elvis Pranskevichus Date: Sun, 7 Nov 2021 13:32:57 -0800 Subject: [PATCH] Fix the description of the database argument to connect() The docs incorrectly claim that the `database` argument defaults to the OS username, whereas in fact, the computed value of the `user` argument is used. Fixes: #823. --- asyncpg/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asyncpg/connection.py b/asyncpg/connection.py index a7ec7719..21cb5e5d 100644 --- a/asyncpg/connection.py +++ b/asyncpg/connection.py @@ -1841,7 +1841,7 @@ async def connect(dsn=None, *, If not specified, the value parsed from the *dsn* argument is used, or the value of the ``PGDATABASE`` environment variable, or the - operating system name of the user running the application. + computed value of the *user* argument. :param password: Password to be used for authentication, if the server requires