Open
Show file tree
Hide file tree
Changes from all commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
Submodule pgproto updated 7 files
+1 −1.gitignore
+17 −2codecs/numeric.pyx
+2 −2codecs/text.pyx
+1 −2frb.pxd
+1 −1hton.h
+3 −1types.py
+24 −10uuid.pyx
Original file line numberDiff line numberDiff line change
Expand Up@@ -94,6 +94,15 @@ async def test_get_settings_01(self):
self.assertEqual(
self.con.get_settings().client_encoding,
'UTF8')
await self.con.execute("set client_encoding to 'sql-ascii'")
self.assertEqual(self.con.get_settings().client_encoding, "SQL_ASCII")

async def test_client_encoding(self):
await self.con.execute("set client_encoding to 'sql-ascii'")
encoding = await self.con.fetchval("show client_encoding")
self.assertEqual(encoding, "SQL_ASCII")
encoding = await self.con.fetchval("select $1::text", encoding)
self.assertEqual(encoding, "SQL_ASCII")

async def test_server_version_01(self):
version = self.con.get_server_version()
Expand Down