Skip to content

Commit d85e90a

Browse files
Add note that SQL and PL/SQL statements are handled differently when binding by
position and that binding by name is generally recommended.
1 parent 18145b8 commit d85e90a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/src/cursor.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ Cursor Object
137137
dictionary, the values will be bound by name and if the arguments are a
138138
sequence the values will be bound by position. Note that if the values are
139139
bound by position, the order of the variables is from left to right as they
140-
are encountered in the statement.
140+
are encountered in the statement and SQL statements are processed
141+
differently than PL/SQL statements. For this reason, it is generally
142+
recommended to bind parameters by name instead of by position.
141143

142144
A reference to the statement will be retained by the cursor. If None or the
143145
same string object is passed in again, the cursor will execute that

0 commit comments

Comments
 (0)