Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit 7570204

Browse files
authored
fixed failed test
1 parent fe5903a commit 7570204

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

databases/backends/postgres.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from sqlalchemy.dialects.postgresql import pypostgresql
77
from sqlalchemy.engine.interfaces import Dialect
88
from sqlalchemy.sql import ClauseElement
9+
from sqlalchemy.sql.elements import quoted_name
910

1011
from databases.core import DatabaseURL
1112
from databases.interfaces import ConnectionBackend, DatabaseBackend, TransactionBackend
@@ -79,7 +80,7 @@ def __init__(self, row: tuple, result_columns: tuple, dialect: Dialect) -> None:
7980
}
8081

8182
def __getitem__(self, key) -> typing.Any:
82-
if type(key) is str:
83+
if type(key) is str or quoted_name:
8384
idx, datatype = self._column_map[key]
8485
else:
8586
idx, datatype = self._column_map_full[str(key)]

0 commit comments

Comments
 (0)