Ensure we copy records correctly
This commit is contained in:
parent
c5da95bb00
commit
8704c6cac9
|
@ -94,9 +94,11 @@ class ResultSet:
|
||||||
parameters = []
|
parameters = []
|
||||||
if records is None:
|
if records is None:
|
||||||
records = []
|
records = []
|
||||||
# Copy so that we do not modify the original records
|
self.records = []
|
||||||
self.records = records[:]
|
|
||||||
for record in records:
|
for record in records:
|
||||||
|
# Copy so that we do not modify the original records
|
||||||
|
record = record[:]
|
||||||
|
self.records.append(record)
|
||||||
for i, value in enumerate(record):
|
for i, value in enumerate(record):
|
||||||
if isinstance(value, Decimal):
|
if isinstance(value, Decimal):
|
||||||
# Ensure we do not try to send Decimal to the client
|
# Ensure we do not try to send Decimal to the client
|
||||||
|
|
Loading…
Reference in New Issue