Skip to content

Commit a2a9237

Browse files
authored
Fix the description of the database argument to connect() (#847)
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.
1 parent 603e386 commit a2a9237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncpg/connection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ async def connect(dsn=None, *,
18411841
18421842
If not specified, the value parsed from the *dsn* argument is used,
18431843
or the value of the ``PGDATABASE`` environment variable, or the
1844-
operating system name of the user running the application.
1844+
computed value of the *user* argument.
18451845
18461846
:param password:
18471847
Password to be used for authentication, if the server requires

0 commit comments

Comments
 (0)