From 9bf89d34e1c11edd560b29b4614141da27fc27ca Mon Sep 17 00:00:00 2001 From: Jolbas <39026960+Jolbas@users.noreply.github.com> Date: Sun, 25 Sep 2022 14:32:42 +0200 Subject: [PATCH] test: check unusual column names and namedtuple --- tests/test_rows.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_rows.py b/tests/test_rows.py index 62b15a764..600a7e678 100644 --- a/tests/test_rows.py +++ b/tests/test_rows.py @@ -56,6 +56,11 @@ def test_namedtuple_row(conn): assert r2.number == 1 assert not cur.nextset() assert type(r1) is not type(r2) + cur.execute('select 1 as üåäö, 1 as _, 1 as "123"') + (r3,) = cur.fetchall() + assert "üåäö" in r3._fields + assert "f_" in r3._fields + assert "f123" in r3._fields def test_class_row(conn): -- 2.47.3