From bb3bd2e6f147606188ea5a1fe172160dcc323eb7 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Wed, 8 Oct 2008 18:35:26 +0000 Subject: [PATCH] Add a comment warning that parameters not passed in during subsequent executions of a statement will retain their original values as requested by Harald Armin Massa. --- doc/cursor.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/cursor.rst b/doc/cursor.rst index 8619490..e7adf07 100644 --- a/doc/cursor.rst +++ b/doc/cursor.rst @@ -115,7 +115,9 @@ Cursor Object same string object is passed in again, the cursor will execute that statement again without performing a prepare or rebinding and redefining. This is most effective for algorithms where the same statement is used, but - different parameters are bound to it (many times). + different parameters are bound to it (many times). Note that parameters that + are not passed in during subsequent executions will retain the value passed + in during the last execution that contained them. For maximum efficiency when reusing an statement, it is best to use the setinputsizes() method to specify the parameter types and sizes ahead of