We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 745f8f8 commit f5b425aCopy full SHA for f5b425a
docs/usage.rst
@@ -318,9 +318,9 @@ be registered on a connection using :meth:`Connection.set_builtin_type_codec()
318
async def run():
319
conn = await asyncpg.connect()
320
# Assuming the hstore extension exists in the public schema.
321
- await con.set_builtin_type_codec(
+ await conn.set_builtin_type_codec(
322
'hstore', codec_name='pg_contrib.hstore')
323
- result = await con.fetchval("SELECT 'a=>1,b=>2'::hstore")
+ result = await conn.fetchval("SELECT 'a=>1,b=>2'::hstore")
324
assert result == {'a': 1, 'b': 2}
325
326
asyncio.get_event_loop().run_until_complete(run())
0 commit comments