Skip to content

Commit 232d064

Browse files
author
James William Pye
committed
Don't bother slicing data.
1 parent 05e5ea2 commit 232d064

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/types/io/lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def record_unpack(data,
303303
Given serialized record data, return a tuple of tuples of type Oids and
304304
attributes.
305305
"""
306-
columns = long_unpack(data[0:4])
306+
columns = long_unpack(data)
307307
offset = 4
308308

309309
for x in range(columns):

0 commit comments

Comments
 (0)