Skip to content

Commit 73bdc1e

Browse files
author
Jakub Urban
committed
Fixed Record iteration:
* use self._raw, which is always possible even for test (raw) queries
1 parent 9cb2202 commit 73bdc1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

databases/backends/postgres.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ def __getitem__(self, key: typing.Any) -> typing.Any:
115115
return raw
116116

117117
def __iter__(self) -> typing.Iterator:
118-
return iter(self._column_map)
118+
return iter(self._row.keys())
119119

120120
def __len__(self) -> int:
121-
return len(self._column_map)
121+
return len(self._row)
122122

123123

124124
class PostgresConnection(ConnectionBackend):

0 commit comments

Comments
 (0)