From b202d75cdc96048e2a5b09d15b57b8890d6bb418 Mon Sep 17 00:00:00 2001 From: Adam Ji Date: Tue, 21 Nov 2023 10:35:27 +0800 Subject: [PATCH] docs: close cursor after use --- docs/examples/python/connect_rest_with_req_id_examples.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/examples/python/connect_rest_with_req_id_examples.py b/docs/examples/python/connect_rest_with_req_id_examples.py index 3feb574fa6..f1b5915ea3 100644 --- a/docs/examples/python/connect_rest_with_req_id_examples.py +++ b/docs/examples/python/connect_rest_with_req_id_examples.py @@ -33,6 +33,8 @@ data = cursor.fetchall() print(column_names) for row in data: print(row) +# close cursor +cursor.close() # output: # inserted row count: 8