Skip to content

Commit 38379ae

Browse files
Merge pull request #228757 from dzsquared/sqlbindings-python-feb2023
https://github.com/MicrosoftDocs/azure-docs/issues/104419
2 parents 780c686 + f5608ef commit 38379ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-functions/functions-bindings-azure-sql-output.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ def main(req: func.HttpRequest, todoItems: func.Out[func.SqlRow]) -> func.HttpRe
845845

846846
try:
847847
req_body = req.get_json()
848-
rows = list(map(lambda r: json.loads(r.to_json()), req_body))
848+
rows = func.SqlRowList(map(lambda r: func.SqlRow.from_dict(r), req_body))
849849
except ValueError:
850850
pass
851851

@@ -926,7 +926,7 @@ def main(req: func.HttpRequest, todoItems: func.Out[func.SqlRow], requestLog: fu
926926

927927
try:
928928
req_body = req.get_json()
929-
rows = list(map(lambda r: json.loads(r.to_json()), req_body))
929+
rows = func.SqlRowList(map(lambda r: func.SqlRow.from_dict(r), req_body))
930930
except ValueError:
931931
pass
932932

0 commit comments

Comments
 (0)