From 39040b3cd022d69d7c4678738d2fe2abf902f3c5 Mon Sep 17 00:00:00 2001 From: Adam Liddell Date: Sun, 19 Jul 2020 02:40:03 +0100 Subject: [PATCH] Fix usage documentation for hstore (#515) --- docs/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage.rst b/docs/usage.rst index 9a88d2ca..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())