We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8141b93 commit 39040b3Copy full SHA for 39040b3
docs/usage.rst
@@ -320,8 +320,8 @@ be registered on a connection using :meth:`Connection.set_builtin_type_codec()
320
# Assuming the hstore extension exists in the public schema.
321
await conn.set_builtin_type_codec(
322
'hstore', codec_name='pg_contrib.hstore')
323
- result = await conn.fetchval("SELECT 'a=>1,b=>2'::hstore")
324
- assert result == {'a': 1, 'b': 2}
+ result = await conn.fetchval("SELECT 'a=>1,b=>2,c=>NULL'::hstore")
+ assert result == {'a': '1', 'b': '2', 'c': None}
325
326
asyncio.get_event_loop().run_until_complete(run())
327
0 commit comments