diff --git a/docs/usage.rst b/docs/usage.rst index 72e32184..3c835ece 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -320,8 +320,8 @@ be registered on a connection using :meth:`Connection.set_builtin_type_codec() # Assuming the hstore extension exists in the public schema. await conn.set_builtin_type_codec( 'hstore', codec_name='pg_contrib.hstore') - result = await conn.fetchval("SELECT 'a=>1,b=>2'::hstore") - 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} asyncio.get_event_loop().run_until_complete(run())